Tag Info

Hot answers tagged

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


4

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


4

I found the following answer by Chris O'Brien If a list has workflows defined which are set to auto-start, these will always execute before any other 'ItemUpdated' or 'ItemCreated' event receivers by default. It is possible to re-order these in code however - I needed to do this once as for some reason I needed a receiver to fire before the workflow did ...


3

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.


3

I searched all over the internet for an answer to this exact question. Finally after happening on a white paper about lookups I found my answer. I am not sure if this is your problem as well. When creating new columns in my child list (in my sharepoint site), I had incorrectly made their classification "lookup" instead of "choice", "text", or "number". I ...


3

Sharepoints Workflow isnt entirely sequential, the Approval Process has overall behavior and individual task behavior. Individual Tasks are sequential, but the workflow can repeat any number of tasks. The trick is getting them to repeat the way you want. Here's a simpler solution. Simulate a loop back behavior (on Approval Process only): In the Task ...


3

Following Caesar answer I knew what to google for. The nicest thing I have seen is from Adrian Henke's blog /// <summary> /// Disabled item events scope /// </summary> /// <see cref="http://adrianhenke.wordpress.com/2010/01/29/disable-item-events-firing-during-item-update/"/> class DisabledItemEventsScope : SPItemEventReceiver, ...


3

There is no web service to interact with workflows. (You could write a custom one I guess). Edit There is a Workflow Web Service: workflow.asmx, it is just undocumented for SP 2010. What kind of operations are you trying to perform? That is a pretty broad area, and depending on the desired action, there may be different "better" approaches to take. If ...


3

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


3

If your workflow is a "truely" reusable workflow then you can get a wsp by: Open SharePoint Designer on the Development server Open the Site with the Workflow In navigation select workflows Select your workflow Click "Save as template" in the ribbon Go to "Site Assets" in the site Download the generated wsp Unfortunately it's very easy to make a resuable ...


3

SharePoint does not provide a method of restarting a workflow. You can however cancel a running workflow and start it again. A good example of canceling a running workflow can be found here: http://blog.brianfarnhill.com/2008/10/how-to-cancel-a-workflow-programmatically The snippit of code below will start your workflow. private static void ...


3

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.


2

follow these steps to solve the notification issue / problem with the Task process in SharePoint 2010 workflow (share point 2010 designer) (this apply to the custom task process too) : on the main workflow designer (2010) page click "Edit Workflow" then on the next page where you see all your workflow steps point to the step which has the task process, a ...


2

In SharePoint Designer, right click on list #2 and select Properties. Click on the Settings tab and select the option Hide from Browsers and click OK. This will remove the list from the interface. Those working with the data in that list will need hooks into it or separate web part pages with access to the list.


2

Instead of using U2U CAML Query Builder in a lot of cases it's easier to build the query by creating a view using the SharePoint UI. When you get the view right the use SharePoint Manager to look at the Query of the View. In case of the status of the Approval workflow it may be a little complicated as what you want to check for isn't the text Appoved, but ...


2

This is a bug that is fixed in Feb 2012 CU. Refer the URL: http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/b55a7370-cdcb-446a-8d89-9adba1f3df2a


2

Took me a while to find this again: Hello again, Not sure if anyone is still following this, but I managed to do a workaround after much frustration: Create a page with the content type you want to create via Workflow normally With SharePoint Designer open the directory, highlight the file you created and choose export - then save it to somewhere on your ...


2

I have a workaround for this issue that does not require any SharePoint farm changes. In the email-enabled document library or list, create a custom text column that has a default value. In Nintex workflow, set it to trigger on item changed - conditional. Make the condition the column/value you set in step 1. You should also have the workflow change that ...


2

Ours didn't send an email to a SharePoint Group until we: Set the "Who can view the membership of the group?" to Everyone Give Read permissions to the group for the site We then tested with a very simple workflow with SPD and it worked. We got some hints from here. If your email is still not sending after that, then you may need to see: Verify it's a ...


2

Create additional template_value column in the second list that will hold a copy of "value" column. (as you named it) - just add 'set field to value' in your current workflow. Then add another workflow that will be triggered after second list is edited. Once you edit item the workflow should: add a temporary value to value in the first list (so we're back ...


2

Did you find a solution to this issue? I'm having the same issues myself. The only difference is that instead of it saying "Workflow failed to get user profile for user: xxx/HAdes" it says "Workflow failed to get user profile for user: HAdes" I think this may solve my issues but I would rather not rebuild Mysites and UserSync from scratch to run this ...


2

I also think that using of workflow isn't the best solution to implement behavior described by you. The workflows should be used if you have some interaction with user or external service. Timer jobs works for you if you just need to perform some tasks at scheduled time. You can move all code needed to timer job and it will be run by SharePoint Timer Service ...


2

I've encountered the same issue and I had the SP1 for SharePoint Designer2010 already installed. SP D2010 Version : 14.0.6123.5001 (32-bit) with SP1 The issue : I am using SP2010 with infopath 2010. i've designed a custom approval which contains one approval process. this workflow prompts users to fill in reviewer, CC and comments on the workflow ...


2

Yes it is Possible. for this kind of application you have to use Event Receiver which get the total number of item added in LIST A and module by 5. e.g.:- LIST A Items Count = 6. then if(Count%5 == 1) then Write the Logic to add Email of LIST B in LIST A item, and repeat for all condition(from 1 to 5). you can use Item Added Event Receiver.


2

You basically need 2 workflows that will end up triggering each other to create a loop. The workflows would check to see if the date the workflow is being executed is the same as the birthday. If it is, email the user, if it isn't wait 24 hours, update a trigger field in your list and end. This updating of the trigger will cause the other workflow to ...


2

Does it look like this: using (SPSite site = new SPSite("http://serverName:1111/")) { using (SPWeb web = site.RootWeb) { SPList list=web.Lists["Doc Library"]; SPListItem listItem = list.GetItemById(1); ScheduledItem scheduledItem = null; if ...


2

One approach I would like you to try, Configure Incoming email settings on a SharePoint library. There are many articles in the web, like this which explains the same. Once you start receiving emails directly to SharePoint library, you can use the SPEmailEventReceiver class which fires when an email is received in a list and then you can initiate a ...


2

There is a sendEmail activity that you can drop onto the designer. It is under SharePoint Workflow group. You should be able to add the loop, the if check, and the send email activity to the designer and just set the fields as needed. MSDN - SendEmail Activity Members SendEmail Activity Tutorial on C# Corner


2

The survey list can handle this out of the box. If that doesn't suit the need, then you can create a custom list with all your form fields and create a custom InfoPath form to show/hide content or use javascript/jQuery on the form pages to show/hide infomation. If you want it to be a document, then you can use a form library and create your own InfoPath ...



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