How to trigger a workflow when record is updated and not inserted ?

SNDP
Tera Contributor

I am using workflow editor where I want to trigger a workflow at the time when the particular record is updated for the first time and not inserted. After the update it has further workflow and notifications which triggers after it.

2 REPLIES 2

Mark Manders
Mega Patron

The easiest way would be to leave workflow and go with flow designer, because there you have the option simply in the trigger. 

But you can try in the properties to update the conditions to updated changes, or something like that.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Mohan raj
Mega Sage

Hi @SNDP,

 

Trigger the workflow when record got updated, This configure not available in workflow setup. But there is work around to trigger the workflow when record get updated i.e., via Business rule  -- update = true

Try the below script to run the workflow 

 

var wf= new Workflow();

wf.startFlow(wf.getWorkflowFromName('<Name_of_the_workflow>'), current, 'update');

 

 

For your reference check the below ServiceNow Docs i will help you

https://docs.servicenow.com/bundle/washingtondc-api-reference/page/app-store/dev_portal/API_referenc...

 

 

If my response helps you to resolve the issue close the question by Accepting solution and hit thumb icon. From Correct answers others will get benefited in future.