Workflows: Triggered before or after record is inserted/updated to database

Community Alums
Not applicable

Hi ServiceNow Community,

This seems like a simple question that I hope someone can help with.

If I have a workflow attached to say, the [sys_user] table, is the workflow triggered before or after the record has been committed to the database?  

The requirement I have is we integrate ServiceNow and OKTA.  When a user record is inserted or specific fields are updated, I will make changes to the user's profile in OKTA using REST.

 

Thanks,

1 ACCEPTED SOLUTION

SanjivMeher
Kilo Patron
Kilo Patron

workflow triggers post record insert/update.


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

3 REPLIES 3

SanjivMeher
Kilo Patron
Kilo Patron

workflow triggers post record insert/update.


Please mark this response as correct or helpful if it assisted you with your question.

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

First of all this should not be done via workflow not a good practice to have workflow on User table.

I would Rather do this using BR and script include.


Thanks,
Ashutosh

Community Alums
Not applicable

Thanks Ashutosh.  

 

I appreciate the feedback.  I was going back and forth about using BRs & script include or a workflow.