Hot answers tagged

13

Use Sharepoint Designer: In the body of the form "send an e-mail", find 'edit hyperlink' button in the upper right corner of the message. for field address, click lookup for string or 'fx' in Data Source, select “Workflow Context”. for field from source, select "Current Item URL". Now Save, publish and test.


11

If you use linq to object, you always retrieve ALL records from DB. It is not good if you have got a lot of data. To reduce records you can use CAML query: SPQuery query = new SPQuery(); query.Query = "<Where>" + "<Eq>" + "<FieldRef Name=\"FileLeafRef\"/>" + ...


10

Yes, you'd just need to craft a hyperlink to the edit form in the email body. <a href="http://your.domain.com/sites/sitecollection/Lists/Tasks/EditForm.aspx?ID=[Add current item id here]">Edit item</a>. Use the SPD interface to add in a workflow variable for the current item ID or task ID in the URL above where the [] are.


10

I believe that the EditForm.aspx you are referring to (Workflow > Open task list > Forms > EditForm.aspx) is for the standard tasks in the task list. Workflow tasks, though they are in the same list, operate a little differently. Firstly, what type of workflow is it? Browser SharePoint Designer Visual studio Workflow tasks created by the approval ...


10

You can do this using Powershell. Loop through all sites in your site collection, then all lists, then all workflow associations. $site = Get-SPSite("your-site-url"); $site.AllWebs | foreach { $_.Lists | foreach { $_.WorkflowAssociations | foreach { write-host "Site:" $_.ParentWeb.Url ", List:" $_.ParentList.Title ", Workflow:" $_.Name } } }


9

You will need to go into Central Administration and update the outgoing email settings for the farm to point to the new email server. You should also check that web application itself is pointing to the new email server as well since the Web Application settings override the farm settings. You also might want to check your Event Logs and LOGS folder to see ...


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


8

It turns out that SharePoint Designer provides the entire URL to the task, exactly what I need: [%Current Task:Form_URN%]


8

I was able to get the linked work-around working without issue. So I would guess a step was either missed or done just slightly wrong in following those instructions. So I will go back through them and highlight potential tricky spots: Using SharePoint Designer 2007, open your Training site Expand Workflows > Attendee unregistration and double click ...


8

I think this post over on SharePointMag may be what you are looking for. EDIT Summary of Article This looping workflow has one choice to make among three options each time iterates: Is the task complete? If yes, quit. Yeah, we’re done! Is this the first time I’m sending a reminder? If yes, send a reminder and pause one day. Set a flag to indicate that ...


8

The TimeoutDuration of the Delay activity is a TimeSpan which means that it could in theory be set to milliseconds. But in practice every time you delay your workflow in only picked up the next time the Workflow timer job runs which by default is every 5 minutes. You can change how often the timer job runs by using stsadm, but you probably shouldn't set it ...


8

‘Out of the box’ Workflows SharePoint 2010 Standard and Enterprise include a selection of ‘out of the box’ workflows. These tools help you automate the most common business tasks – sharing and collecting feedback on documents. List of OOB workflows: Workflow Types Windows Workflow Foundation supports two fundamental workflow styles. You can create ...


7

Why are you trying to cram this into a workflow? IMO, workflow wasn't designed to be run as a "scheduled" task. You're trying to hammer in a nail with a screwdriver. You should use a custom timer job, or even easier, just create a console application: In visual studio, File -> New -> Project Choose Windows -> Console application Add a reference to ...


7

You should set-up the Item Level Permission for the list or library so only users who created the item can view/edit etc. check out this article that explains how to achieve this in SP2010 Item Level Permission 2010


7

The System.Net.Mail namespace works with on-premise Sandbox solutions but does not work with Office 365, so there is no way to send email from code. The "Send Email" activitiy in SharePoint Designer workflows in Office 365 does work, so yes, you can use workflow to send email.


7

Thanks for this! This comes in handy when you want to click on a link within a column to start the WF. To do so, add a calculated column and select the number type. and use the following code: =TEKST.SAMENVOEGEN("<a href=javascript:StartWorkflow(";ApparaatID;",";"'";"{e5859b62-c666-41d0-94be-4df08b86e8d4}";"'";")>ingeleverd</a>") Sorry for ...


7

How to get Workflow status via CSOM function getWorkflowStatus(listTitle,listItemId,workflowTitle, success,error) { var context = new SP.ClientContext.get_current(); var web = context.get_web(); var list = web.get_lists().getByTitle(listTitle); var listItem = list.getItemById(listItemId); context.load(listItem); context.executeQueryAsync( ...


6

The solution is to launch the Web Platform Installer (WebPI) and search for "Workflow Manager". Make sure you add and install the Workflow Manager CU2 update that supports Server 2012 R2. You may also need to install the CU2 prerequisite: Cumulative Update for Service Bus 1.0 (KB2799752).


6

Here is the solution: Challenges: The requirement needs to be achieved only using Out of the Box solution. And SPD workflow does not give any feature to scan multiple list items. Solution: Since MOSS 2007 SPD Workflow has very few actions, we can not achieve the whole solution using SPD Workflow. So we need to populate the List Item so that most 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 ...


6

You can trigger the workflow when the item is created, then pause it until you reach the expiration date minus 30 (or 45) days. This can easily be done with SharePoint Designer. This could become tricky if the expiration date is modified later. If it is the case you'll need to rely on more advanced solutions (e.g. recurring workflows that poll the item at ...


6

5 minutes is a good default setting. Setting it less than that as suggested can cause additional overhead. Where I've seen it be really bad, is when it's set to one minute, and yet it takes longer than a minute to finish all of the timer jobs. I've seen cases where the timer job has hung. Really depends on the environment, number of users, and if you're ...


6

Just retrieve the template as an SPFile and use the OpenBinary() method to get the byte[]. Then copy that to your new file. Edit. The template is not actually bound to your list but to a content type, so you need to retrieve it using its url: byte[] f = w.GetFile(web.Lists[YourList].ContentTypes[yourContentTypeId].DocumentTemplateUrl).OpenBinary();


6

We've found it's much easier to just add a webconfig.something.xml file to the Config folder. So for your one entry you can create an xml file with these contents: <?xml version="1.0" encoding="utf-8" ?> <actions> <remove ...


6

Compare the values of your Current Item's Created column and Modified column in your workflow. If the two datetime values are equal, your Current Item is newly created. Else, your Current Item's been changed.


6

Go to your Tasks List and go into the List Settings. Click on the Due Date column and tick the Calculated radio button. In the formula, put [Today]+2 and click OK. Go back to the list and select New and you'll see the Due Date is 2 days in the future. If you need to do this within the workflow, you'd use an Add Time to Date action, setting it up to add 2 ...


6

Why the code solutions? Use the native SP2010 document routing possibilities. Define an external Send to location on your source web app (in central admin), point it to the external site (web service url is something like http://destinationsiteurl/_vti_bin/OfficialFile.asmx), set the file action to either copy or move (depending on your needs). Then, in ...


6

Finally, I was able to address this requirement as follows: Create a Custom Activity which takes a SharePoint group as an input parameter and outputs a set of email addresses of people added directly in the group. At the core of the activity I used following method which gives me list of email addresses for people belonging to the group strOutput = ...


6

I would suggest that you create a custom workflow activity to do the stuff instead of a batch file. Since your only gathering info from a list and producing a file this should be quite easy.


6

The easiest way to invoke some code on submission (...insert) of a list item it to write an ItemAdded event receiver. The item level event receiver can be registered against a web, list or content type. Here's an example of registering one against a web (...this would fire for an item added to any list or library on the web: SPEventReceiverDefinition ...



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