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​ ...


7

You definitely don't want to use a workflow for this. Workflows are good for certain things, but the background color for a list item is not actually stored on the list item, so there is no way a workflow will be able to access or modify it. To me, it sounds like a job for Client Side Rendering (CSR), which would use JavaScript to check the value of the ...


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.


4

If you are looking for a SharePoint designer workflow solution, then I believe there is a 2 step solution to it. 1. Based on the submitted value of Date of join field calculate resulting induction date. This can be achieved by using Add Time to Date action. Set the values to match your requirement in action, like add 7 change minutes to Days and lastly to ...


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

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 ...


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.


4

Isn't default content approval created for this types of requirement? Please try to turn on content approval and draft access restriction at Versioning Settings in discussion board settings. Something like http://www.savtechsol.com/Education/BeckysBlog/Lists/Posts/Post.aspx?ID=122. Official doc is here - https://support.microsoft.com/en-us/kb/825239, and ...


4

I think the best option is using the Open with Windows Explorer, you can copy multiple documents. Another option is, Using the 3rd party add-on, Download Multiple Documents. it is free. Lastly, you can use the PowerShell script to download multiple files.check this


4

Considering that you are using a SharePoint group and presuming that the Assign a task step is not running inside an App Step, then make sure that everyone can view the membership of the group. Go to the group settings page and the select Everyone option under the "Who can view the membership of the group?" question. The reasoning behind this is that the ...


4

What you could to is just create a OOTB custom list, change the Title field to "New Idea" or something relevant and then enable ratings for the list from List Settings > Rating Settings. Enable it to Yes and select Star ratings and voila! Users can now rate the item/idea on a scale of 1-5 stars. If you wanna take it further from there, you could set up a ...


3

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 ...


3

If this is a 2013 workflow you could use the new loop feature to periodically check if a date is within range. Something like this (short pause, for testing):


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

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

A different way to doing this is to use retention policies. You can get them to run off a given date field as well as set it to X days/months/years. No need to pause workflows as you simply run the workflows when needed. Retention should be under settings for the library/list. (Please note that I use SP2013 but it should work in SP2010 as well: ...


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

In SharePoint 2010 designer, "Save as Template" option is available only for Re-usable workflows and is not available for List workflows, that is why it is disabled.


3

Use CSOM / JSOM with CAML to get all tasks where ParentID is NULL, i.e. all top level tasks. // Create Context etc first List list = context.Web.Lists.GetByTitle(listTitle); CamlQuery query = new CamlQuery(); query.ViewXml = @"<View> <Query> <Where> <IsNull><FieldRef Name='ParentID' ...


3

Happily, this is straightforward to achieve. What you need to do is insert a section 'If' action immediately after the first, ensuring the 'and/or' toggle is set correctly at the second (and subsequent) 'If' statements. You should end up with something that looks like the following screenshot Where the Column A value is in a separate list you will need ...


3

Instead of using Update item, use Set field in Current Item. In my experiences, the action "Update item" will trigger, which is essentially starting another workflow. This ghost resending of tasks may be the other workflow coming up behind you and finishing out its actions.


3

Allow users to add items to list from custom web part - On default new form put a script to navigate to page which says - "New item cannot be added from here" or alternately add content editor on new page with text " New item cannot be added from here" and hide (not delete) the existing web part on page Prevent same group of users to view/edit items ...



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