We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

What is the difference between Run script vs onBefore script in transform map?

Suggy
Giga Sage

Hi,

To my knowledge 'Run script' is a useless field. Whatever you can do in Run script, same thing can be done in obbefore script. Even if I consider the precedence, onBefore runs before the run script.

 

Suggy_0-1723566924204.png

 

Let me know if my understanding is wrong. 

Or if there a reason why Run script is available, do let me know. Thanks in advance!!!

3 REPLIES 3

Zach Koch
Giga Sage

Take a look at this other thread, has some good info on the subject 

What exactly is the use of 'Run script' in a transform map? 

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

@Zach Koch I have already seen that post. That doesnt answer my question.

Suggy
Giga Sage

Anyone