How to log choice action in transform map history ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2022 04:57 AM
There are 3 choice actions 1.) create, 2.) ignore, 3.) reject when open a particular field map in transform map.
So in my PDI all choice actions are getting logged itself in the transform history but in my work related instance it is not happening for choice action = ignore, it is working for choice action = reject.
what is the variable for choice action ? like there is one for 'action'.
following is ss from PDI I also want to edit this default message in PDI
- Labels:
-
Script Debugger
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2022 02:41 PM
Are you sure in your work related instance that the ignore action is being triggered 100%?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2022 09:09 AM
Hi
Yes, the ignore event is executing as I can see the particular field getting ignored(empty) on which I am testing it. Same scenario I tried in PDI, it is working there too but only difference is of logging of this even.
Also I would like to edit this default message in PDI, could you tell is there any variable which I can target using script ? like we do with action, source, etc.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2022 05:06 PM
I assume in a scripted field mapping or a before/after transform script you can try log it like
if (source.getValue("sys_import_state") === ‘ignored') {
gs.log("something");
}
Youll have to check if this works though for onBefore/onAfter it should work but not sure for scripted field mapping.
Cannot help you with editing default message, maybe some other community member might know or you can try asking ServiceNow if possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2022 09:43 AM
Hi,
does the 'sys_import_state' refer to the particular choice value ignored or is it related to event when whole record gets ignored(i.e. when action = 'ignore').
Thanks for your time though.