how to trigger change template (standard change) in On-before transform script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 12:16 AM
Hi community ,
we are creating a change request (standard change) via transform map, we have created a standard template also ,
we have to trigger the template in the transform map when ever the (action == "insert" ).
Template :
can some one help us with the script how we can trigger the template .
Thanks in Advance !!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 12:40 AM
Hi,
You can also set up a Flow that creates the change record whenever an insert happens on this table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 05:02 AM
Hello Amar,
Try using the below script in OnBefore script
if (action == "insert" ){
target.std_change_producer_version = "sys_id"; // sys_id of the current version of the template.
target.applyTemplate("name"); // template name
}