- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 11:40 PM
I created a transform map to create bulk incidents.
But the user that gets in the incident was the locked out/inactive users.
How can I get the active users?
I have this transform map onBefore script
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 12:44 AM - edited 12-18-2023 12:45 AM
Hi @Vengeful , Open the field mapping and enable the 'Use source script' check box and try with below script.
Regards,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 11:47 PM
Do you mean to ask that the incident must be created only for active users ?
☑️ 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
12-18-2023 12:21 AM
Yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 11:56 PM
Hi @Vengeful
You can do your custom script in your Field Map, querying to get the Active User then return the User sys_id since you're doing mapping on the reference field User.
In your Transform Map, How do you currently map the User field? What is the User value in your Source (staging table)?
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 12:20 AM