Difference between Postman and ServiceNow when sys_id is used. Why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 08:11 AM - edited 04-04-2024 01:29 AM
On the incident form, to populate the 'Assignment group' field, if I use the Name of the group in postman/rest API explorer, it works fine and udpate will happen.
but the same operation will not work if I make use of Business rule like (current.assignment_group= "Test Group");
In business rule, only if I pass the sys_id then it gets updated.
Note -
if I write like this (current.assigned_to = "john viva"); ---- this work.... why not for assignment group?
How does it actually work? Why it differs from Business rule vs Postman/REST API explorer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2022 11:59 PM
Anyone?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 12:25 AM
Hi @Suggy ,
1. You can pass sys_id in JSON.
2. Set the display value of Assignment group in backend by using below code:
current.assignment_group.setDisplayValue('response.assignment_group');
Regards,
Reshma
**Please mark my answer correct or helpful based on the impact**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2022 06:03 AM - edited 04-04-2024 01:27 AM
Hi @reshmapatil
current.assigned_to = "Demo User"; -----> works
current.assignment_group = "Demo Group"; ------> does not work... WHY?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 01:27 AM
ANYONE?