Transform map Scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 06:06 AM
Hi All,
Can anyone explain me the 'onChoiceCreate' and 'onForeignInsert' transform map event scripting with example?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 08:41 AM - edited 02-22-2024 08:43 AM
pls check this link.
also this link will be usefull
https://john-james-andersen.com/blog/navigating-transform-scripts-in-servicenow.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 08:46 AM
Hi @Ssaini1 ,
Here is the explanation:
onStart: executes at the start of an import before any rows are read
onAfter: executes at the end of a row transformation and after the source row has been transformed into the target row and saved
onBefore: executes at the start of a row transformation and before the row is transformed into the target row
onChoiceCreate: executes at the start of a choice value creation before the new choice value is created
onComplete: executes at the end of an import after all rows are read and transformed
onForeignInsert: executes at the start of the creation of a related, referenced record before the record is created
onReject: executes during foreign record or choice creation if the foreign record or choice is rejected; The entire transformation row is not saved
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 03:29 PM
The SN documentation? Really?
