SharePoint Designer workflow - update list item field without creating new version?

Hello,
I have a list that uses versioning.
I have a workflow, designed in SharePoint Designer, that will track changes in some columns, and if there is a change it will send out an email.
To track the changes eg in the Status column, I have a hidden "OldStatus" column so I can compare the current value with the previous value.
If it's different it means it has been changed, and I send out an email, then update the OldStatus with the current value so they're in sync again.
Problem I have now is that when I update the OldStatus column in my workflow it will create a new version of the listitem. I don't want that. This is a system value change and has no value at all to the end user.
In C# I can do a systemupdate to avoid this, but how can I do this in SharePoint Designer?
Please don't tell me I should write the entire workflow in code, only to get access to the systemupdate command....

I created a Worfklow Activity class, called "UpdateFieldInCurrentItemSilentMode".
I add the default context properties to work with:
#region Context properties
public static DependencyProperty __ContextProperty = DependencyProperty.Register("__Context", typeof(WorkflowContext), typeof(UpdateFieldInCurrentItemSilentMode));
[Category("My Workflow Actions")]
[Browsable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public WorkflowContext __Context
get
return ((WorkflowContext)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ContextProperty)));
set
base.SetValue(UpdateFieldInCurrentItemSilentMode.__ContextProperty, value);
public static DependencyProperty __ListIdProperty = DependencyProperty.Register("__ListId", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
[ValidationOption(ValidationOption.Required)]
public string __ListId
get
return ((string)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ListIdProperty)));
set
base.SetValue(UpdateFieldInCurrentItemSilentMode.__ListIdProperty, value);
public static DependencyProperty __ListItemProperty = DependencyProperty.Register("__ListItem", typeof(int), typeof(UpdateFieldInCurrentItemSilentMode));
[ValidationOption(ValidationOption.Required)]
public int __ListItem
get
return ((int)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ListItemProperty)));
set
base.SetValue(UpdateFieldInCurrentItemSilentMode.__ListItemProperty, value);
public static DependencyProperty __ActivationPropertiesProperty = DependencyProperty.Register("__ActivationProperties", typeof(SPWorkflowActivationProperties), typeof(UpdateFieldInCurrentItemSilentMode));
[ValidationOption(ValidationOption.Required)]
public SPWorkflowActivationProperties __ActivationProperties
get
return (SPWorkflowActivationProperties)base.GetValue(UpdateFieldInCurrentItemSilentMode.__ActivationPropertiesProperty);
set
base.SetValue(UpdateFieldInCurrentItemSilentMode.__ActivationPropertiesProperty, value);
#endregion
Then I add my own input parameters to work with:
public static DependencyProperty StaticFieldNameProperty = DependencyProperty.Register("StaticFieldName", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
[Category("My Workflow Actions"), Browsable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public string StaticFieldName
get
return Convert.ToString(base.GetValue(StaticFieldNameProperty));
set
base.SetValue(StaticFieldNameProperty, value);
public static DependencyProperty FieldValueProperty = DependencyProperty.Register("FieldValue", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
[Category("My Workflow Actions"), Browsable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public string FieldValue
get
return Convert.ToString(base.GetValue(FieldValueProperty));
set
base.SetValue(FieldValueProperty, value);
Then the actual workflow action code:
protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
try
if (this.__Context == null)
throw new Exception("__Context is NULL");
if (this.__Context.Site == null)
throw new Exception("__Context.Site is NULL");
//reload the web using the SPSite object to work around any limitations on the objects
//applied to the user running the workflow
SPWeb tmpweb = __Context.Web;
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite site = new SPSite(tmpweb.Url))
using (SPWeb web = site.OpenWeb())
//load list
SPList lst = web.Lists[new Guid(__ListId)];
//load listitem
SPListItem item = lst.GetItemById(__ListItem);
//update field value
item[this.StaticFieldName] = this.FieldValue;
//commit changes
item.SystemUpdate();
//return success workflow status
return ActivityExecutionStatus.Closed;
catch (Exception exc)
string sMsg = "Error in 'UpdateFieldInCurrentItemSilentMode':" + Environment.NewLine
+ exc.Message + Environment.NewLine + Environment.NewLine +
"StaticFieldName: " + this.StaticFieldName + Environment.NewLine +
"FieldValue: " + this.FieldValue;
Common.WriteErrorToLog(sMsg);
//return failed workflow status
return ActivityExecutionStatus.Faulting;
Note: the WriteErrorToLog function is a custom function that writes the error to the event log. It's located in another class. You can replace it with your own error handling approach.
Then we need to specify the workflow action in the .actions file, so SharePoint Designer knows about it and which parameters are required:
<Action Name="Set field in current item (silent mode)"
ClassName="My.WorkflowActions.UpdateFieldInCurrentItemSilentMode"
Assembly="My.WorkflowActions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0f8d2d9e2dfb2160"
AppliesTo="all"
Category="My Workflow Actions">
<RuleDesigner Sentence="Set field %1 in current item to value %2 (silent mode)">
<FieldBind Field="StaticFieldName" DesignerType="ParameterNames" Id="1" Text="StaticFieldName" />
<FieldBind Field="FieldValue" DesignerType="ParameterNames" Id="2" Text="FieldValue" />
</RuleDesigner>
<Parameters>
<Parameter Name="StaticFieldName" Type="System.String, mscorlib" DesignerType="ParameterNames" Direction="In" />
<Parameter Name="FieldValue" Type="System.String, mscorlib" DesignerType="ParameterNames" Direction="In" />
<Parameter Name="__Context" Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext" Direction="In" />
<Parameter Name="__ListId" Type="System.String, mscorlib" Direction="In" />
<Parameter Name="__ListItem" Type="System.Int32, mscorlib" Direction="In" />
<Parameter Name="__ActivationProperties" Type="Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties, Microsoft.SharePoint" Direction="Out" />
</Parameters>
</Action>
That is all you need for the specific code, the rest is common code to build custom workflow actions, which you can find on many blogposts or this forum.

Similar Messages

  • Updating a title column in list that is a lookup column to document library in sharepoint designer workflow 2010

    Hi I have a requirement to create a list item in Contracts List when a document is uploaded in Contracts Vendor library.
    Contracts List will
    have  columns - Contract Name ( title column), Contract Number, Contract Start date and end date.
    Contracts Vendor library will have Contract
    Name,Contract NUmber.
    User will select the Contract Name from drop down ( this is look up column linked to Contract Name in Contract
    List).When user uploads document in Contract Vendor library then item should be created in Contract List with selected Contract Name and
    Contract number .
    Contracts and Contracts Vendor are related by look up Contract Name. Contract Name is internally a title column in
    Contracts List.
    Issue1 :
    Since Contract number is look up column, while I am creating item the Contract name is not getting updated in
    Contracts List. I have to use sharepoint designer workflow to achieve this task. Title colum or Contract Name shows no title.
    Issue 2:
    One
    more issue I am facing is that Contracts List has Section and Division cascaded drop downs when i select values from section and division
    dropdowns and save item in Contracts list the values are getting saved in Contract List.
    Could anyone suggest me how to handle this ? I am
    attaching the screenshots of the list and library structure. TRuly appreciate your help.
    Below are screenshots of the list structure

    Hi,
    According to your post, my understanding is that you wanted to update a title column in list that is a lookup column to document library in sharepoint designer workflow 2010.
    I try to reproduce the issues as follows:
    Create a custom list named Contracts List, add columns: Contract Name ( title column), Contract Number(Number), Contract Start date(Data and Time) and Contract End date (Data and Time).
    Create a document library named Contracts Vendor library, add columns: Contract Name(Lookup), Contract NUmber(Lookup).
    Create a workflow associated to the Contracts Vendor library.
    Add action: Create List Item.
       5. Start the workflow automatically when an item is created.
       6. Upload a document, select the Contract Name and Contract NUmber, the workflow will be started automatically.
       7. Open the Contracts List, an item will be added with the Contract Name and Contract Number in the Contracts Vendor library.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • SharePoint Designer Workflow to check if value exists in any item in SharePoint List

    Hi,
    I've two column in SharePoint List. I want to check using SharePoint Designer 2013, if value exists in any item in SharePoint List for these two columns "PR NO" and "Part No". Thanks
    Can you please help me in SharePoint Designer how to write condition / steps for this. Thanks.

    Why are you making things complicated for yourself by building a workflow via SharePoint designer 2013.
    I had a to do a similar task in the past and running powershells was an easier and faster approach.
    Take a look at this Microsoft technetarticle I wrote a while back.
    http://social.technet.microsoft.com/wiki/contents/articles/25125.sharepoint-2013-powershell-to-copy-or-update-list-items-across-sharepoint-sites-and-farms.aspx
    Even though the above article talks about updating an existing list, you can focus on the condition where the powershell will loop through the list to see if any change has been made. You can add a condition to this change.
    Daniel Christian (MCTS)

  • How to find item is updating in Sharepoint designer workflow?

    Is there anyway we can get when list item updating in sharepoint designer workflow?. I have status ="New" it is need to send only one time when new item created.
    But now it is sending emails when item is updating with status="New". So I want check if it is new then only check status="New" and send email. otherwise No.
    ItsMeSri SP 2013 Foundation

    Hi ,
    According to your description, my understanding is that you want to send email in workflow only when the item is created and the status is New.
    For this issue, I suggest you create a new Yes/No column called “Edited”, and set the default value to No. When you edit it after creation, change the column to Yes.
    You can set the workflow like the screenshot:
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Sharepoint Designer Workflow - Send an Email that displays Item Changes

    Hi,
    I have set up a Sharepoint Designer Workflow that sends an email to the Owner of an item (designated by a column in my list) whenver that item is changed by another user. The workflow looks like this:
    If Current Item:Modified by not equals Current Item:Primary Owner
    Email Primary Owner
    This is set to occur whenever an item is modified.
    I would like the email to show what changes were made to the item, similar to how Sharepoint's notifications work. It should show what the field that was changed to trigger the notification contains currently and what it contained previous to the change. 
    Any help is much appreciated. 

    hi,
    out of box there is no option available. But you can implement a solution.
    Create a hidden field as multiple line of text. Make it a hidden field so that user cannot enter into this field.
    When ever a workflow start check if this field is empty that means item is create now using string manipulation in workflow concatenate the meta data in one workflow variable and save it in this hidden field.
    whenevre a workflow is start if hidden field is not empty it means this is an update item scenerio and than you 
    can have read old values from this field and you have new values in item metadat. format email to get diff.
    send email upadte the hidden field again with new meta data.
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • SP Designer - Update list item value error

    Hi,
    I'm making holiday requests with SP designer, and my workflow works well, however, when the manager validation task is created, I would like to add the holiday request's details (such as start date, end date, Employee ID, etc).
    So I have a list called "Holiday request" and an associated task list where all the validation tasks are stored.
    What I tried was to use the "Update list item" function to update the Employee ID value (in the validation task column I created) with the holiday request's Employee ID value. So what I did was this :
    (I initially posted a picture but I cannot, apparently)
    The list I work on is the associated task list. I chose the field "Employee ID" and set the value to "Current item : Employee ID".
    In my lookup, I've set the associated content field and in the value : "Current Item:Title"
    I have also tried to use the Current Item:ID (which would be the Holiday request's ID), but it didn't work either. I've been testing a lot and wanted to know if you guys had any suggestions ?
    Thanks a lot.
    Cheers

    Below are steps need to performed to update custom fileds in task form
    1. Create custom task content type using SharePoint 2013 workflow task.
    2. Add your fields here (start date, end date, Employee ID etc).
    3. Make sure this custom task content type is associated with workflow task list.
    4. In the assign task activity change the Task content type to your custom task content type.
    5.From the single task activity properties uncheck "Wait for Task completion".
    The below screenshot i have updated Empid in task form with current list Item id. You can update them according to your requirement.
    Hope this helps.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Copy ID from one library to list using sharepoint designer workflow 2013

    Hello,
    I am new In SharePoint Designer workflow.
    I want to copy ID [by default] from one SharePoint Library to SharePoint List by using SharePoint Designer workflow 2013.
    So Please provide me any solution on it.
    Thanks,
    Samadhan.

    Hi Bjorn,
    Please create a workflow based on SharePoint 2010 platform, there is OOB action "Copy List Item" which can copy attachment to another list.
    Then use "Update List Item" action to update fields value for the new item. In this action, we could use Item title to locate the newly created item. For your reference:
    However, we cannot make this workflow to start automatically. As workaround, we could use SharePoint Designer to create a Custom Action in the Source List and initiate the workflow. In my test, I created a Custom Action in the type of List Item Menu. Then
    the custom action would appear in the Item ellipsis dropdown menu:
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Bug? - SharePoint Designer workflow email to a person field - combines two emails to create an invalid email

    Hi there,
    In my SharePoint 2010 Custom List - I have a SharePoint Designer workflow that sends emails to a Person Type column called "Notify". However when I type several users here in NewForm.aspx in Notify field - two of the users do NOT get email. On
    checking logs it so turns out that email is being sent to: [email protected]; [email protected]@c.com; [email protected]; [email protected];
    Now the bold text above is an invalid email address (without the semi colon between two users) and user2 and user3 do NOT get any email.
    The way it is implemented in SharePoint Designer workflow is pretty straightforward - see Notify field below.
    Any help will be appreciated on how to fix this? This seems to be an SPD bug?
    Thanks.

    Hi,
    According to your post, my understanding is that you wanted to send email to a person field.
    I try to reproduce the issue, however, I can send email to five people correctly.
    I recommend to create workflow as below:
    Then when you open the email, you can find that it cc to five users.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Collect data from User workflow error updating list item

    Hi, can someone please help me with WSS 3 workflows?!
    I'll keep it simple - I have a workflow step "Collect data from user" that will fail with Unknown Error when attempting to update list item (this is after the user has clicked Complete Task). The workflow does not continue past this step and I have
    to terminate the workflow.
    What is odd, is that if I do another Collect data from User in the same step but following the 1st collect, both will work!! How can this be?? This proves the 1st collect is OK so why won't it run without another Collect data after it?! Doesn't make sense to
    me.
    I was just trying the second Collect to troubleshoot the issue. I've tried other actions there but having another Collect does seem to be the action that kicks things into life. Is there a clue here?
    Any clues would be much appreciated as I'm not able to turn much up when I Google.
    Thanks

    Well, surprise, surprise, this has come back (thought it might!). The trace logs show it's a task locked error but I can't see how. Can anyone please provide me with some clues??
    03/14/2014 12:30:25.11     w3wp.exe (0x7698)                           0x5EA4    Windows SharePoint
    Services       Web Controls                      88wy    Medium      SPDataSourceView.ExecuteSelect()
    - selectArguments: IsEmpty=True, MaximumRows=0, RetrieveTotalRowCount=False, SortExpression=, StartRowIndex=0, TotalRowCount=-1    
    03/14/2014 12:30:28.39     w3wp.exe (0x7698)                           0x6C4C    Windows SharePoint Services 
         Web Controls                      88wy    Medium      SPDataSourceView.ExecuteSelect() - selectArguments:
    IsEmpty=True, MaximumRows=0, RetrieveTotalRowCount=False, SortExpression=, StartRowIndex=0, TotalRowCount=-1    
    03/14/2014 12:30:28.47     w3wp.exe (0x7698)                           0x6C4C    Windows SharePoint Services 
         Web Controls                      88wy    Medium      SPDataSourceView.ExecuteSelect() - selectArguments:
    IsEmpty=True, MaximumRows=0, RetrieveTotalRowCount=False, SortExpression=, StartRowIndex=0, TotalRowCount=-1    
    03/14/2014 12:30:29.86     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           72er    Medium      Microsoft.SharePoint.SPException: This task is currently locked by a running workflow and cannot
    be edited.     at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, SPWeb web, Boolean bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames, Object& objAttachmentContents, Int32&
    parentFolderId)     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean
    suppressAfterEvents)     at Microsoft.SharePoint.SPListItem.Update()     at Microsoft.SharePoint.Workflow.SPWinOEWSSService.CommitUpdateListItem(Transaction txn, Object[] transData)    
    03/14/2014 12:30:29.86     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           72fe    High        Error in commiting pending workflow batch items: Microsoft.SharePoint.SPException: This
    task is currently locked by a running workflow and cannot be edited.     at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, SPWeb web, Boolean bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames,
    Object& objAttachmentContents, Int32& parentFolderId)     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion,
    Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents)     at Microsoft.SharePoint.SPListItem.Update()     at Microsoft.SharePoint.Workflow.SPWinOEWSSService.CommitUpdateListItem(Transaction txn, Object[]
    transData)     at Micro...    
    03/14/2014 12:30:29.86*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           72fe    High        ...soft.SharePoint.Workflow.SPPendingWork.PerformWorkNow(Transaction txn)    
    at Microsoft.SharePoint.Workflow.SPPendingWorkBatch.Commit(Transaction transaction, ICollection items)    
    03/14/2014 12:30:30.05     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           88xr    Unexpected    WinWF Internal Error, terminating workflow Id# 2dc6002d-9f9d-474f-84cf-329025347ec5    
    03/14/2014 12:30:30.05     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    System.Workflow.Runtime.Hosting.PersistenceException: This task is currently locked by a running workflow
    and cannot be edited. ---> Microsoft.SharePoint.SPException: This task is currently locked by a running workflow and cannot be edited.     at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, SPWeb web, Boolean
    bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames, Object& objAttachmentContents, Int32& parentFolderId)     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion,
    Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents)     at Microsoft.SharePoint.SPListItem.Update()     at Microsoft.SharePoint.Workflow.SPWi...  
    03/14/2014 12:30:30.05*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    ...nOEWSSService.CommitUpdateListItem(Transaction txn, Object[] transData)     at
    Microsoft.SharePoint.Workflow.SPPendingWork.PerformWorkNow(Transaction txn)     at Microsoft.SharePoint.Workflow.SPPendingWorkBatch.Commit(Transaction transaction, ICollection items)     at System.Workflow.Runtime.WorkBatch.PendingWorkCollection.Commit(Transaction
    transaction)     at System.Workflow.Runtime.WorkBatch.Commit(Transaction transaction)     at System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)    
    at System.Workflow.Runtime.Hosting.DefaultWorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)     at System.Workflow.Runtime.WorkflowExecutor.CommitTransaction(Activity activityContext) 
    03/14/2014 12:30:30.05*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    ...   at System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boolean
    unlock, Boolean needsCompensation)     --- End of inner exception stack trace ---     at System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boolean unlock, Boolean needsCompensation)    
    at System.Workflow.Runtime.WorkflowExecutor.System.Workflow.ComponentModel.IWorkflowCoreRuntime.PersistInstanceState(Activity activity)     at System.Workflow.ComponentModel.Activity.MarkClosed()     at System.Workflow.ComponentModel.Activity.ReleaseLockOnStatusChange(IActivityEventListener`1
    eventListener)     at System.Workflow.ComponentModel.FaultAndCancellationHandlingFilter.SafeReleaseLockOnStatusChange(ActivityExecutionContext context)     at System.Workflow.ComponentModel.FaultAndCancella...  
    03/14/2014 12:30:30.05*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    ...tionHandlingFilter.OnEvent(Object sender, ActivityExecutionStatusChangedEventArgs e)    
    at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)     at System.Workflow.Runtime.Scheduler.Run()    
    03/14/2014 12:30:30.38     w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ERROR: request not found
    in the TrackedRequests. We might be creating and closing webs on different threads. ThreadId = 59, Free call stack =    at Microsoft.SharePoint.SPRequestManager.Release(SPRequest request)     at Microsoft.SharePoint.SPWeb.Invalidate()    
    at Microsoft.SharePoint.SPWeb.Close()     at Microsoft.SharePoint.SPSite.Close()     at Microsoft.SharePoint.SPSite.Dispose()     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflow(SPWorkflow
    workflow, Collection`1 events, SPRunWorkflowOptions runOptions)     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflow(SPWorkflow workflow, Collection`1 events)     at Microsoft.SharePoint.Workflow.SPWinOEItemEventReceiver.RouteWorkflowEvent(SPItemEventProperties
    properties, SPWeb web, SPListItem item, Boolean fNeedTas...    
    03/14/2014 12:30:30.38*    w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ...kReset)    
    at Microsoft.SharePoint.Workflow.SPWinOEItemEventReceiver.ItemUpdated(SPItemEventProperties properties)     at Microsoft.SharePoint.SPEventManager.RunItemEventReceiver(SPItemEventReceiver receiver, SPItemEventProperties properties, SPEventContext
    context, String receiverData)     at Microsoft.SharePoint.SPEventManager.RunItemEventReceiverHelper(Object receiver, Object properties, SPEventContext context, String receiverData)     at Microsoft.SharePoint.SPEventManager.<>c__DisplayClass8`1.<InvokeEventReceivers>b__0()    
    at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)     at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)     at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken
    03/14/2014 12:30:30.38*    w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ...userToken, CodeToRunElevated
    code)     at Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](SPUserToken userToken, RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel)     at Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](Byte[]
    userTokenBytes, RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel)     at Microsoft.SharePoint.SPEventManager.HandleEventCallback[ReceiverType,PropertiesType](Object callbackData)    
    at Microsoft.SharePoint.Utilities.SPThreadPool.WaitCallbackWrapper(Object state)     at System.Threading.ExecutionContext.runTryCode(Object userData)     at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
    code, CleanupCo...    
    03/14/2014 12:30:30.38*    w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ...de backoutCode, Object
    userData)     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)     at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback
    tpWaitCallBack)     at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)  , Allocation call stack (if present) null    

  • SharePoint Designer Workflow, condition: if value of date/time field is less then x days from today, do something

    Hello,
    A field in a list is called 'Date'  (it is a date/time type of field)
    Now I want a condition in a workflow that checks the 'date' field. If the date is less than X days from today it should (for example) send an email to a certain user.
    Is this kind of condition possible in a SharePoint Designer Workflow?
    Thanks in advance!

    Hi,
    As I understand, you want to create a workflow that can check data.
    The workflow can be:
    1. Add 0 months, 2 days, 0 hours, 0 minutes to Current Item:date1 (Output to Variable: date ) (2 days is the days you can set, and Current Item:data1 is the datefield you want to check from today)
    2. Add 0 months, 0 days, 0 hours, 0 minutes to Today (Output to Variable: date1 )
    3. Set time as 0 : 0 for Variable: date (Output to Variable: date2 )(get the Variable: date Date only )
    4. Set time as 0 : 0 for Variable: date1 (Output to Variable: date3 )( get the Variable: date1 Date only)
    5. If Variable: date2 equals Variable: date3
    6. Email these users
    https://onedrive.live.com/redir?resid=40B702A9FB117DD!136&authkey=!ABtMg5n3OtPakCg&v=3&ithint=photo%2cPNG
    More reference:
    http://stackoverflow.com/questions/1249366/start-sharepoint-workflow-x-days-before-expiry-date
    Best regards,
    Sara Fan

  • How to send emails to Multiple Users from a Single People Picker lookup field using Sharepoint designer workflow

    Hi All,
    I am working with SharePoint 2013 designer workflow. we are using office 365.
    Our requirement to send email to multiple users, get the user groups from lookup list people and groups column.
    But SP designer sending emails to the first user alone.
    Please guide me to proceed.
    Advance Thanks.
    Regards
    Jenkins NS
    Thanks and Regards Jenkins

    finally I got a solution
     Identified a workaround to solve the issue using SharePoint designer.
    Step 1
    Create a lookup list Example department
    Columns
    Title (by default) – Single line of text
    Users – Person or Group
    Emails – Multiple lines of text
    hidden the Emails column (go to content type and set the column as hidden)
    Create a SharePoint designer Workflow
    Start Workflow automatically when an item is created
    Also Start Workflow automatically when an item is changed
    Workflow Stage 1
    Set Emails to current Item: Users
    The workflow will get all users email ids and add in the Emails column delimiter as semicolon.
    Step 2
    Create a custom list to get the email ids and send email
    Create a lookup column ex: analysis and refer department list, Allow multiple values
    Then Create a SharePoint designer workflow
    full details workflow steps please follow below
    URL
    http://jenkinsblogs.com/2015/04/30/how-to-send-emails-to-multiple-users-from-lookup-list-people-picker-field-using-sharepoint-designer-workflow/
    Thanks and Regards Jenkins

  • SharePoint Designer Workflow to email multiple recipients listed in a custom list

    Hi all,
    I created a workflow in designer attached to a form library. I also have a custom list "Admins" containing names of persons that serves a different purpose but would also like to be used as recipients for the workflow email everytime a new item in the
    form library is created.
    I have been searching the net and tried out few work arounds but so far able to send to only one person in the "Admins" list. The list has a column "Admin Name" which is of type "Person or Group".
    Thanks in advance!

    You will not be able to do this specific task with SharePoint Designer workflows.  Like you stated, it can only target a specific value, based on the value in anoter column.  The easiest work-around would be to create a SharePoint security group
    that contains the users, then target that group in the Send Email action.  Just make sure that the group is configured for membership to be visible by all users.  I know it is not ideal to manage information twice, but this is a limitation of SharePoint
    Designer.Chris Caravajal MCTS SharePoint911 Consulting & Support Services

  • How to update list item using client object model without changing created/modified dates?

    Hello All,
    I want to update list item using the SharePoint Client Object
    Model without updating the created / modified date. Is it possible?
    Please help.
    Thanks.

    Using the SystemUpdate method should do the trick, according
    to its literature.
    Additionally, would something like this be of any use for you?  Taken from this
    Stack Exchange thread: -
    public static class SPListItemExtensions
    /// <summary>
    /// Provides ability to update list item without firing event receiver.
    /// </summary>
    /// <param name="item"></param>
    /// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
    public static void Update(this SPListItem item, bool doNotFireEvents)
    SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
    if (doNotFireEvents)
    try
    rh.DisableEventFiring();
    item.Update();
    finally
    rh.EnableEventFiring();
    else
    item.Update();
    /// <summary>
    /// Provides ability to update list item without firing event receiver.
    /// </summary>
    /// <param name="item"></param>
    /// <param name="incrementListItemVersion"></param>
    /// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
    public static void SystemUpdate(this SPListItem item, bool incrementListItemVersion, bool doNotFireEvents)
    SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
    if (doNotFireEvents)
    try
    rh.DisableEventFiring();
    item.SystemUpdate(incrementListItemVersion);
    finally
    rh.EnableEventFiring();
    else
    item.SystemUpdate(incrementListItemVersion);
    /// <summary>
    /// Provides ability to update list item without firing event receiver.
    /// </summary>
    /// <param name="item"></param>
    /// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
    public static void SystemUpdate(this SPListItem item, bool doNotFireEvents)
    SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
    if (doNotFireEvents)
    try
    rh.DisableEventFiring();
    item.SystemUpdate();
    finally
    rh.EnableEventFiring();
    else
    item.SystemUpdate();
    private class SPItemEventReceiverHandling : SPItemEventReceiver
    public SPItemEventReceiverHandling() { }
    new public void DisableEventFiring()
    base.DisableEventFiring();
    new public void EnableEventFiring()
    base.EnableEventFiring();
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • "SharePoint Designer cannot display the item" error when edit workflow

    Hi
    I create workflow for sharepoint list in version 2007. Then upgrade sharepoint form version 2007 to 2010. Now when I want to edit this workflow, get this error:
    “SharePoint Designer cannot display the item.
    What you can try:
    Click the Refresh button or press F5 to refresh the content from your site.
    Go back to the previous page
    Most likely causes:
    The file has been deleted from the site.
    The site is encountering problems.”
    What is the problem?
    Thanks.

    Hi,
    Have you used custom activity in your workflow? We may come across this issue when we use custom activity. A workaournd is to modify the Workflows XOML file, and remove custom activity reference from it. And restart your SharePoint designer. See below blog.
    http://saiabhilash.blogspot.com/2011/11/sharepoint-designer-cannot-display-item.html
    Or a quick workaround is recreate the workflow in SharePoint Designer 2010.
    Thanks & Regards,
    Emir
    Emir Liu
    TechNet Community Support

  • When building a vacation leave holiday system using SharePoint Foundation 2010 and SharePoint Designer workflows how can I add half day functionality?

    Hi,
    I have built a vacation leave holiday system for SharePoint Foundation 2010 using SharePoint Designer workflows and Javascript. Everything works perfectly but I'm struggling to design a solution for users to specify half day requests that span over dates
    greater than 1 day, i.e. my half day solution works but only when the start and end date are the same. How would I change the user interface to allow users to choose which day they want the half day to be requested when the vacation leave holiday request is
    from, say,  6th - 10th Jan 2014?
    Thanks.

    Hi ,
    I have a test on my machine with a custom approval workflow and it can work normally .Here are the detailed steps :
    1.      
    Open the site in SharePoint Designer .Create a workflow to associate with the document library .Set the workflow to start when an item is created and when an item is changed
    .Also allow the workflow to start manually .
    2.      
    Choose ‘Collect Data from a user’ .
    3.      
    Click on the data and give a name to the Task created .
    4.      
    Define the custom form field name as ‘Approve ?’ .Set the information type as Choice .
    5.      
    Set the choices as ‘Approve’ and ’Reject’ .Display as Checkboxes .Uncheck the ‘Allow fill-in values’ and ‘Allow blank values’
    .Click finish to save .
    6.      
    Click on users and add the users who will approve the documents .
    7.      
    Keep the output to variable as collect .
    8.      
    Add a new step .Choose ‘If any value equals value ’ .Set the any value ‘Data source’ as  workflow variables and parameters .Set the ‘Field
    from source’ as Variable: collect .
    9.      
    Set the value behind ‘equals ’ as ‘Approve’ .
    10.  
    Add a new action ‘Update list item ’ .Set the item as current item .Add the field Approval status as Approved .
    11.  
    Add an Else-if branch to update the Approval status as Rejected .
    12.  
    Publish the workflow and test in your site .
    Thanks,
    Entan Ming

Maybe you are looking for

  • Help please, pages is now asking for registration which i bought from iTunes Jan '11

    I have been using pages since Jan 2011 which I bought from iTunes as a paid download, not a trial version. I dont have a serial number, (Ive checked on the invoice) to put in and I dont want to pay again. Just weird that all of a sudden it should bri

  • IWeb wont work after MAC OS X upgrade, and restore from backup

    I upgrading to Mac OS X 10.5.2, and reinstalling iWeb 08, and restoring my website from backup, iWeb does not recognize my existing website. When I opened iWeb for the first time, it had the option for creating a new website, not recognizing my exist

  • Is there graphical equalizer in apple tv

    I am thinking of buying apple tv..but i wanna really know that it has a graphical equalizer or not. coz i really need it for better audio quality.. could u please answer me? null

  • IMac G5 + PowerMac G5

    I know this is stupid but... I heard something where you can hook up an iMac G5 to the PowerMac G5 and both will work better. Can this be possible

  • ArchSnaps -- Daily Snapshots Downloader

    Hi guys, I've coded a new tiny bash script that can be run from cron. It can download any architecture selected automatically by running simple commands. See this wiki page for more details and code it self at http://wiki.gotux.net/code/bash/archsnap