Tag Info

Hot answers tagged

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

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\"/>" + ...


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

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


7

I think this post over on SharePointMag may be what you are looking for. http://sharepointmagazine.net/articles/the-dog-ate-my-task-use-sharepoint-designer-to-email-daily-task-reminders 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 ...


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

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

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


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

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


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

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

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

‘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

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


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

Dave has a good answer, however, if this has been done, I would check to make sure that the relay is set up correctly to allow all traffic from the IP addresses of all servers in your farm without authentication. It appears that your code may send credentials while the alerts and OOTB workflow emails are not sent using any particular credentials.


5

When workflow A ends you can update a status column or a tracking column that will trigger workflow b to initiate. Prior to having a commercial workflow engine, I would have a main status column that drives workflow A and in workflow B, I'd have a condition like if Workflow A tracking column = X and workflow tracking column B = Y, do something. Else update ...


5

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();


5

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


5

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


5

One of the restrictions of sandboxed solutions is that you cannot call WCF web services. There is no way around this, other than calling a web service from the browser using client side (ie: Javascript) code.


5

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.


5

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.


5

I've implemented this method in the past, so I just share my code with you: add: private void AddAuthorizedType(SPWebApplication webApplication, string assembly, string namespace_) { SPSecurity.RunWithElevatedPrivileges(delegate { var modification = new SPWebConfigModification(); modification.Path = ...


5

Might want to take a look at this article http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceiverbase.disableeventfiring(v=office.12).aspx Basically, what your looking for is something like this base.DisableEventFiring(); item.update(); base.EnableEventFiring();


5

Once you remove multiple duplicate entries from your amalgamated calendar, you could do this using a SPD workflow that runs on the amalgamated calendar each time an item is added. Below is the workflow map of an example I tried: Step 1 First we set a variable to the ID of a list item that has the same 'OriginalID' as the current item. Be sure to set the ...


5

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



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