Tag Info

Hot answers tagged

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

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


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


7

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


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

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


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

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.


7

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


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


6

You have to change a system setting that allows workflows to run when emails are received in an email-enabled doc lib. Other than this, System Account is not allowed to run workflows for security purposes. It will only work when an email is received, not when an item is edited by System Account. You should not be editing items with the System Account: ...


6

Microsoft haven't indicated that a service pack will provide .Net 4.0, and it's clear that a good amount of re-engineering/regression testing would be required for this to happen. In the absence of any official information, I'd design around the platform you have now. HTH, Chris.


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


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

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

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

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.


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

Probably one should use references from Microsoft itself on MS products. So, Microsoft source tells: "Workflow form changed from InfoPath form to aspx form For a workflow based on SharePoint Designer 2013 (WF4) and Windows Azure Workflow, SharePoint creates aspx forms instead of InfoPath forms that were created by SharePoint Designer 2010 (WF3.5) ...


6

Yes it is required. The Workflow Timer Service is not just responsible for your List/Documents workflows, but also for a lot of other system related tasks. It should be started on all Sharepoint Servers including Web front ends and application, search servers. There is no harm in it running as well. If it's not busy, it wont consume resources.


6

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


6

Sequential workflow A sequential workflow represents a series of steps. The steps are performed one after another until the last activity is completed. Sequential workflows are always strictly sequential in their execution. Because they can receive external events, and include parallel logic flows, the exact order of execution may vary. The following ...


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

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


5

SharePoint 2010 is based on .net 3.5, so no WF4. Shame, but we'l have to live with it until the next version.


5

The From address of emails sent from workflow is fixed to the address set in Central Administration and can not be changed. http://office.microsoft.com/en-us/sharepoint-designer-help/send-e-mail-in-a-workflow-HA010239042.aspx#BM9 The following options are not supported by the current version of the Send an Email action: Specifying ...



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