Hot answers tagged

9

The simple process of setting item level permission is not available for SharePoint 2013 workflows. The only way I was able to do was through REST api called under Appstep. There are 2 calls made: BreakRoleInheritance AddRoleAssignment This blog by Yuri Leontyev​ ​ over at spssite.pro can be a good start. Excerpt: BreakRoleInheritance​ ...


6

I have yet to actually deploy it - but I'm pretty sure it will still be around - at minimum to support upgrade. It's not on the deprecated feature list https://technet.microsoft.com/en-us/library/mt346112%28v=office.16%29.aspx?f=255&MSPPError=-2147217396 They still exist in Office 365 The biggest reason - they still support database attach upgrades ...


5

This is by design. In Update Workflow just check if Modified Date is equal to Created Date. That means it is an update after new file upload.


5

Try replicating the same workflow with another new list. I am sure the schema of the associated list would have been corrupted. for further troubleshooting purposes, insert an email sending task or some item updating task in b/w or as a first step with some dummy content so you can know whether it is firing the workflow events or not.


5

You can use the same workflow if you'd like. Just check if the created date is equal to the modified date - if they're the same, then it's just been created. If they're different, you're running in Modified mode.


4

you can use $().SPServices <script type="text/javascript" src="/sites/sprc/Resources%20%20jQuery/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="/sites/sprc/Resources%20%20jQuery/jQuery%20SP%20Services/jquery.SPServices-0.5.4.min.js"></script> <script type="text/javascript"> function StartWorkflow(ItemURL, ...


4

This will be a challenge to do through Workflows. The reason being we can't get the previous value to compare and confirm which field was updated. In such use cases we should use Event Receivers. It has AfterProperties and BeforeProperties. We can use those to compare and confirm whether the field updated is DaysLeft. If you prefer workflow's then before ...


4

Check out http://www.viewmaster365.com/#/How and http://www.viewmaster365.com/#/Create/ActionDelete It step by step explains how to execute JavaScript from a Calculated Column. The ID for an item is available on the Table Row, because a Calculated Formula is displayed inside that TR structure; all you have to do is: var ...


4

It's quite simple: Use pause until like below (Replace hardcoded date with currentItem:EndDate)


4

You could log them to a separate list with limited permissions and use an impersonation step so that the data as written as the workflow publisher. This way no matter who is executing the workflow, they will be able to log the private comments.


3

It is a valid case Microsoft has considered.. SP Designer won't let you create item in same list from a workflow if it executes on item create event.Reason being it will go in infinite loop. Follow this approach: 1) In Original list create a hidden column for you reference. Say Yes/No column 2) Create a temporary list say "Temp" Create 2 columns. ...


3

I think you are on the right track. Your 'rev' column should be set to a type of 'Number', but using column settings you can specify this field show integers/whole numbers only by setting the Number of decimal places value to 'None'. Then, in the WF you can insert the Do Calculation step: then Calculate CurrentItem:rev plus 1 (Output to Variable: result) ...


3

You need to load Id of the definition before creating subscription. Also subscriptionService.publishSubscriptionForList needs guid object instead of just GUID string. When we create List workflow using designer it sets few more properties RestrictTOScope and RestrictsToType. While creating definition using code those properties are not configured hence ...


3

I still could not find documentation supporting the 10,000 activities limit, however I have found a solution which allows the workflow to process in full. The solution was inspired by a little note in this article: https://msdn.microsoft.com/en-us/library/jj680843(v=azure.10).aspx The limit of the memory allocated by a workflow instance. The quota ...


3

On 2013 CSR and the OnPreRender function is one, and maybe even the best way of skinning this cat. You will have to read the whole list and then not display the Form but a message. But you can do without CSR and make SharePoint do half the work for you. A quick and easy ductape patch from the olden days is to hide the NewForm contents. On the ...


3

I just tested this on SharePoint 2010 and for OOTB permission levels, it looks like you would need the Design permission level at a minimum to access the Workflow Settings in a list/library. You can also have the Manage Hierarchy permission level, but this would give you a lot more access than to just the Workflow Settings.


3

I don't think you can send email from SPD 2010 by specifying a from address. I write server code to achieve this. Sending email programmatically in SharePoint


3

I found the solution - works for the same site as well. Copied from the site: Open the site you want to copy the workflow from and click Workflows under Site Objects from the left navigation Select the workflow and click Export to Visio from the designer ribbon to save the file. Note that the default file extension is .vwi Locate the exported file and ...


3

The only way to achieve this with a workflow is to have an "old" column of the changed column. For example, let's say you have a column called ColumnA and another called ColumnA_old. ColumnA_old will be a hidden column. Your workflow is triggered when an item is changed. The changed value will be in ColumnA and the original value will be in ColumnA_old. At ...


3

You can use the Copy List Item action to copy a document from one library to another. I suggest you these useful links: SharePoint Designer Workflow: Copy a document from one library to another SharePoint Designer Workflow: Move a document from one library to another


3

I'd create an on creation workflow that does: Add time to date, -2 days from the current item, date field. This is stored as a variable for you. pause until the variable date if current item status is not complete, send email, else end the workflow This assumes you have some sort of status column that tracks the progress of the item. If you have a ...


3

Before modifying item, you should Disable event firing this.DisableEventFiring(); After finish updating you can Enable it using this.EnableEventFiring(); Identify if event is fired as part of Check-in if (properties.AfterProperties["vti_sourcecontrolcheckedoutby"] == null && properties.BeforeProperties["vti_sourcecontrolcheckedoutby"] != null) ...


3

Put a dynamic value variable in the response content box and put this in the RequestHeader box: Then after the HttpSend activity add a GetDynamicValue activity in which you extract the values you need:


2

Please try following configuration for HttpSend activity: RequestHeader - Accept:"text/html; charset=utf-8", Content-Type:"text/html; charset=utf-8". Uri: URL to access the webservice method.Pass the parameter in querystring. eg: string.Format(".../GetLocalTime.asmx/GetLocalTimePlease/{0}",dateTimeVariable) Or ...


2

No direct way because SharePoint Designer workflow don't give us Previous values like Event Receivers does. If you don't want to follow Event Receiver path, then try below workaround You need to have a hidden field in the list (Say Previous Owner). Add logic in you New/Edit form to populate Previous Owner field with what value in Issue Owner field. (This ...


2

You will need to create another field in the list by the name of Previous Owner. Don't display it in the view. Set it to the same value to Owner when the item is created by a separate workflow that is run when a new item is created. Then create another workflow that only runs when the item is updated and compare the values of the Previous Owner and Owner. ...


2

If you want to pursue this approach could try this trick. Create a dummy variable and set it equal to the Assigned To field but as a text string. Then you are able to test the 'is empty' against the dummy variable and apply your logic whether to email or not. It would give you some measure of control over what the user sees when they are assigned the ...


2

Sharepoint workflows have always run under the context of the user who initiated the workflow process. There were ways to run as the system account in 2007 but that was removed. In 2010 there are impersonation steps that allow actins to run under the context of the person who publishes the workflow. I believe the impersonation steps exist in 2013 as well.


2

In Sharepoint 2013 one thing called App Step and that it is a mechanism provided to developers of SharePoint 2013-platform workflows (Designer workflows or Visual Studio workflows) to elevate permission of the workflow. you have to do following steps. Allow workflow to use app permissions. Grant full control permission to workflow. Develop the workflow to ...


2

Update-SPSolution is what you need, assuming you did not add any new features to the workflow. If you did, you need to use Install-SPSolution Check out this link referencing upgrading workflows: https://msdn.microsoft.com/en-us/library/aa543659.aspx In both, the DLLs and the files will be updated in the GAC the same way, but if the solution has changed the ...



Only top voted, non community-wiki answers of a minimum length are eligible