- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 10:17 PM
I wrote one field map for mapping a specific caller as a caller for another organization, but it's not reflecting their side. I attached a screenshot below. Given sys_id is the user's sysid. Can anyone help with this?
Thanks in advance!!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 11:48 PM - edited 09-16-2024 11:53 PM
@Sayali_9822
try using on Before script
if (action == 'insert' && !target.caller_id) {
target.caller = 'sysId of the caller you want'
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 05:17 AM
@Sayali_9822
Sure
Use below code in same on before script
target.sys_created_on = new GlideDateTime();
Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 11:48 PM - edited 09-16-2024 11:53 PM
@Sayali_9822
try using on Before script
if (action == 'insert' && !target.caller_id) {
target.caller = 'sysId of the caller you want'
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 04:20 AM
It worked for me...
Thank you very much!!!😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 04:27 AM
one more thing I need, I want to map the created date as the current date on the incident 'created' field map. How we can map that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 05:17 AM
@Sayali_9822
Sure
Use below code in same on before script
target.sys_created_on = new GlideDateTime();
Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution