title: SharePoint Workflow: how to update the item without triggering the workflow again
body: <p>I have a <strong>SharePoint workflow</strong> which is <strong>running whenever the item changes</strong>. The workflow communicates with an external REST service. If the service returns a string, I want to <strong>update one of the field values</strong> with that string. Unfortunately, this update will trigger another instance of the workflow for this item once the current workflow terminates. <strong>I end up with an infinite loop!</strong></p>
  
  <p><strong>How I can prevent this from happening?</strong> SPListItem has Update(), UpdateOverwriteVersion(), and SystemUpdate() methods but none of them seem to prevent subsequent workflows from being triggered.</p>
  
  <p>I could inspect the last modified timestamp of the item and terminate the workflow if the last update happened within a certain timespan, but I am looking for a more robust solution.</p>