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


7

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

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


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

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


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


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

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


5

Based on your question, there are two areas to address: How to help your particular problem How to handle workflow errors in general with SPD For your particular problem: I see something that may improve your process based on your description. You mention your general workflow as the following steps: item changes workflow reads fields workflow does ...


5

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


4

Here are the options for workflows in SharePoint 2007: Out-of-the-box. These are described at Office Online. They are limited in options but require no additional tools. SharePoint Designer. These are a lot more flexible and created using a wizard interface within SPD. Here's a video tutorial, and MSDN reference, you can search for many more resources. ...


4

This is a pretty open ended question and the answer would be VERY subjective. You can get pretty creative with SharePoint Designer's "Declarative Workflows" and you can do some pretty complicated things by creating custom actions that do just about anything. What I love about it as an option is that it does a good job with simple automations that cannot ...


4

Make sure you have no white space between your tags when you add/refrence it in SPD, should be one nice long string. i.e. <table><tr><td><p><span></span></p></td></tr></table><etc...> Try encapsulating your content into a table or div and setting margin to 0 and/or adding a negative for the ...



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