Make subject person empty based on a field value on HR case table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 04:53 AM
Hi Team,
I am using a record producer to create record in HR core case table.
Record producer has a field called external employee, if this is checked as true then when case is created subject person field should be empty.
If external employee field is false, then HR case can have subject person.
I have used record producer script to clear subject person value based on external field but it did not work.
Any other way ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 05:11 AM
please try to use after insert BR on that case table
please share your existing record producer script which you wrote.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 05:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 10:30 PM
script looks good.
did you check it went inside that IF?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 10:42 PM
Yes , I am have added info log and I am able to see it.
But still subject person on HR form is populated.