Tag Info

New answers tagged

0

Change following line var ret = ctx.CurrentItem.Body + "<b>" + "<button onclick=\"sendEmail('" + vesselName + "','" + charterer + "','" + nextDueDate + "'");\">Send Email</button>" + "</b>" ; return ret;


0

From infopath itself, natively speaking, no, you dont have any way to do it. U could do it through InfoPath, but programmatically and it's not that hard, you could do something like this: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite siteCollectionOuter = new SPSite(strwebApp)) { SPWebApplication webApp = ...


0

In SharePoint 2013 is possible to use this link path: https://your.site.com/sites/sub/subsub/Lists/YourListName/EditForm.aspx?ID=[%Curent Item: ID%]&Source=https%3A%2F%2Fyour%2Esite%2Ecom%2Fsites%2Fsub%2Fsubsub%2FLists%2FYourListName%2FAllItems%2Easpx&ContentTypeId=[%Curent Item: Content Type ID%] Modify to your path and the "AllItems" should be ...


0

Instead of using a pause until step you could use a custom timer job, this has the advantage of not having to leave workflows hanging on pause steps for extended periods of time. Add a hidden number column to your list and leave it blank. Change the pause step to change value of number column to 1. end workflow Have timer job that runs on all items where ...


0

I used this walk through to solve my question http://officepowerups.com/2013/06/25/sharepoint-show-most-recent-comment/


0

Previous Due Date is a date time field that you should add to the list. This field is used by the workflow.


1

Thanks Devang for your help. Here I'm just posting the final solution provided by Devang. 1) Below workflow need to create. 2) This important while doing entry in Previous Balance Column - When you are adding new record- set Previous Balance=0 or empty. - While you are editing the record second time, Set Previous Balance= Old value of Qty. Also I got one ...


-1

Under List Permission please give Approve Rights


1

Das I've used a combination of workflows in the past and then used additional functionality to make elements that are a bit tricky - reminders for instance - using other methods. In the past in SP 2010 and 2007, there was a bunch of excellent capabilities which used to add some really useful extra Actions to the options for a SP Designer Workflow - ...


1

Inside RunWithElevatedPrivileges you should impersonate current user. Something like var userToken = SPContext.Current.Web.AllUsers["domain\\user"].UserToken; using(SPSite site = new SPSite(SiteURL, UserToken)) list.Update(); //Will save the record as the selected user.


0

My project was not very large so I recreated it in VS13. After that I everything worked fine


0

I face the same issue after installing recommend MS Updates. It seams there is issue with recent MS update for SharePoint i.e. KB2880998 Hotfix to fix the issue is : KB2880963 (http://support.microsoft.com/kb/2880963) It has resolved my issue.


0

If you want calculate then you column type as calculated column and write formula of deducting column which you from 100. For eg: Column a is 40 and you column b as 60(100-40) then u can create column b as calculated column and write formula as : =100-[a]


1

You should be able to do what Devang said to start the workflow when the item is updated/changed. If the workflow just needs to calculate a total value for a column why don't you rather create a view and set the Total value to calculate the sum for that column? Are you using the correct variables when doing your calculation? You are deducting from the ...


1

Is your workflow set to trigger on Item Update? I doubt on this. There are checkbox in the Edit Workflow page. you should enable "Start workflow automatically when an item is changed" Please let me know in case more help is required. EDITED ANSWER as per OP's Comment. Devang / Vince - Yes after select "then update item in current list" but "Start ...


0

GetDynmaicValueProperties in thePropertyName` you should use d/UserProfileProperties/results/(0)/Value More on this topic http://www.andrewconnell.com/blog/SP2013-Workflow-Dynamic-Values


0

I went through the same issue, here's how I resolved it: First check the Troubleshooting section here: http://technet.microsoft.com/en-us/library/jj658588(v=office.15) mainly, my issue was was related to this: "The user who deploys and runs a workflow must be added to the User Profile service. Check the User Profile service application page in Central ...


0

Try the following: Deactivate and reactivate two Site Collection features: Workflows and Publishing Approval Workflow. Grant Edit access to the specific task list for the workflow to the affected user.


-1

workaround Configure the settings of the workflow and set conditional greater than 0 worked for me


0

You can't trigger 2nd workflow automatically (for now, maybe MS will solve recursion issue in the future), but there is a workaround to call it manually from 1st workflow described here: http://blogs.msdn.com/b/sridhara/archive/2014/08/19/fix-sharepoint-2013-workflow-recursion-prevention-part-1.aspx You need to have at least May 2014 CU for this to work. I ...


0

First of all triggering email on a daily basis is not fall into the workflow category. Workflows are there to automate business processes. For this type of requirement you should develop a SharePoint timer job. And schedule it to run every night. The job should pick up the events for next day and sent it to respective persons. This approach has following ...


0

Using EventReceiver you can handle ItemUpdated public override void ItemUpdated(SPItemEventProperties properties) { base.ItemUpdating(properties); if(properties.ListItem.ModerationInformation==SPModerationStatusType.Approved) { //Remove permission } }


0

Are you working SP 2013 online or SP 2013 server. Because I have created a workflow and published using SPD 2013 in SP 2013 online from text based designer.


0

The initial question was misleading, so here's the answer to the situation described in comments: First a user1 submits a travel request to the sharepoint site. When new item is created workflow fires off and collects data from manager1. If manager1 approves or denies it very easy, but if he requests for more info, workflow needs to send email to User 1 ...


1

You can pause until some field gets changed, yes. If the field is set to not be shown on EditForm, to some extent what you want to do is feasible. You can update the SchemaXml of the field via Server side Object Model or Web Services and CSOM to set <Field ... ShowInEditForm='FALSE' ... />. Then it will only be settable via workflow or other ...


0

Store the initial value of Current Item:Assigned To in a workflow variable (say, Workflow Variable:CurrentAssignee) and then Wait for Current Item:Assigned To to not equal Workflow Variable:CurrentAssignee. Then send the email.


0

Instead of adding a second view can't you redirect the user to a page in SharePoint which has the mentioned message Redirect a user after submitting an InfoPath form


0

If the SharePoint Group or Ad Group has the Group Email, then the email sent the mail to group email Id. There is no Out of the box way to achieve this. Some possible workarounds workflow sends mail to individual, but not to group Definitive answer to sending emails to SP Group from Workflow


0

I ended up making a list workflow that updated an item in the list every 15 minutes. Then in my Azure app I created an event receiver that started the app whenever the it received note that the item was changed in the list.


0

NotStarted = 0 FailedOnStart = 1 InProgress = 2 ErrorOccurred = 3 StoppedByUser = 4 Completed = 5 FailedOnStartRetrying = 6 ErrorOccurredRetrying = 7 ViewQueryOverflow = 8 Canceled = 15 Approved = 16 Rejected = 17 http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflowstatus.aspx


2

When in designer go to your workflow settings. You should see a Start Options. The default is set to "Allow this workflow to be manually started" If you want the workflow to start as soon as the item is created or edited. select the appropriate check box. "Start workflow automatically when an item is created" "Start workflow automatically when an item is ...


1

First you have to build DynamicValue: Properties for this activity should look like this: Then you have to place HttpSend activity in the WF designer: And pass it RespContent variable which you have built in the first step:


0

http://channel9.msdn.com has a demo for you with explanations from a Microsoft Premier Field Engineer Lori Gowin: Content Types, Metadata and You. In a nutshell, a Default Column Values setting in Document Library settings appears exactly for that when you activate the Metadata Navigation and Filtering, was it? feature. Also take a look at this blog that ...


0

What you want is a basic approval workflow. Enable content approval and set draft item security in list settings.


0

I had the same problem with SharePoint 2013 Sp1. Used the following command with a -Force parameter: Register-SPWorkflowService -SPSite "http://yoursite/" -WorkflowHostUri "http://yoursitecollection:port" -AllowOAuthHttp -Force


0

Looks like you have some custom solution in your farm which is causing the issue... Solution 1: Open web.config file path : C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS Change the following in web.config <customErrors mode=**"Off**"/> In your site go to site actions->site settings->site administration ...


0

You can find the People picker control id using browser developer tools. Use below code to get the user login var pickerElement = document.getElementById("pickerid"); params['user'] = pickerElement.getAttribute("key");


2

If your server is running on Windows Server 2012 R2 make sure you install Workflow Manager CU2 which requires Service Bus CU1 as a prerequisite.


0

Microsoft have now disabled Microfeed from view in site contents and in action 'Wait for Event in List Item. Workaround Open SharePoint Designer Click All Files > Lists > Right click Published Feed > Properties > Under Settings untick Hide from browser and save. Then go back to your workflow and select 'Wait for Event in List Item' under action and ...


0

It appears that, unless I want to purchase additional software to make the forms easier to use for my end users, that I will have to continue using SharePoint Designer. I have had a pow-ow with a small focus group of people at varying levels of technology skill and only had on of them blanch at the prospect of using this software. After my quick training ...


0

In my answer I'll be focusing on the Activity I have implemented, I will not cover how to implement custom activities. You can find additional information about development and deployment of custom activities on http://msdn.microsoft.com/en-us/library/jj193517(v=azure.10).aspx. This is the solution I believe you are looking for: ...


0

I have had the same problem trying to get a SharePoint 2010 workflow to send a email to a "AssignedTo" "Person or Group" when only that field changed. It was solved it by creating a hidden column to store the previous value of "AssignedTo" and creating workflow variables and assigning them, as type "string", to each People/Group item to be compared. Then ...


0

As it turns out, it seems like you have to set a variable once the task is created, so you can store the task ID. https://support.office.com/en-us/article/Collect-data-from-a-user-in-a-workflow-a1758bcc-6a93-4ca9-9b55-7821b91e80f4?ui=en-US&rs=en-US&ad=US#ocpArticleContent Go to Step 2: Set a workflow variable. In sharepoint 2013, I went to the ...


0

When you're editing the workflow in SP Designer and you add the step to Create New List Item, make sure to add Content Type ID to the list of Fields. I had this exact same error and was able to resolve it by specifying the Content Type ID. Here's where I found the hint: ...


0

Well the answer is kind of silly. The only thing I didn't try was creating the attendees field variable using login name, semicolon delimited. That was the ticket. I actually moved towards doing all this right in the calendar list, and used a secondary list to write some info to for things that can't be recorded in an array in calendar. The biggest issue ...


0

You could create a powershell script like this one http://www.thesysadminhimself.com/2013/09/sharepoint-start-workflow-all-items-powershell.html and schedule the script to run using Task Scheduler on the server. Scheduling workflows is not an option out of the box. Alternatively, you can use third party software such as Nintex Workflow. A free solution could ...


0

You can have a powershell script that runs on a task scheduler for the server that runs on the server everyday. You will need to load the powershell snapin at the beginning of the script and then kick off the workflow in the script. This is an example of starting a workflow on every item in the list. Add-PSSnapin microsoft.sharepoint.powershell $list = ...


0

Yes it is possible to create custom action. Follow this article : http://blog.symprogress.com/2011/01/spd-2010-custom-workflow-activity/


0

Try Disabling and then re-enabling Workflows can use app permissions site feature


1

I solved this. Note for all those who came here by google: This is not a good practice for removing workflows, but only a solution if you already messed up your workflows in SharePoint. (like me) $oldWorkflow="MyOldWorkflow"; foreach ($item in $list.Items) { foreach ($wf in $item.Workflows) { if ($wf.ParentAssociation.Name ...



Top 50 recent answers are included