- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2025 05:43 AM
I have established the connection using Service Bridge Between two ServiceNow instances and did the incident integration with service bridge remote task definition. For the incident all the fields are mapping except reference fields(for example Assignment group field).
In the provider instance i have group - Demo Group, The same group i have created in the Consumer instance as well, When i created incident from provider instance, the incident got created in the consumer instance, but the assignment group is not mapping.
But we can seen the assignment group has been sent to consumer instance(in remote task of the incident the assignment group is populated but not on the incident form).
For this i have written an advanced transform to map the display value of the assignment group, but still the assignment group is not mapping. below is the script I'm using.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2025 02:25 PM - edited ‎05-02-2025 02:38 PM
On the remote task in the consumer instance, the Inbound field Assignment Group shows the display value of the group. These Inbound fields are string fields so they can only show one value which is the display value not the value. There is a field which is not on the form called Inbound vars json. This field contains the values and display values of the Inbound fields. You don't need to interact with it directly. The field mappings and transforms will handle this interaction for you.
Your group name is in the Inbound field - Assignment Group. The sys_id of the group is in the Inbound var json. When Service Bridge is writing data to the Incident, it is looking at the value of Assignment Group in the Inbound vars JSON field. This value is the sys_id of the assignment group in the provider instance.
Looking at the screenshot you provided you can see the icon with circle around the i but no value in the reference field. This is because the reference field is holding a sys_id it does not recognize so it displays blank. The value of the assignment group did make it to the Incident but that assignment group sys_id does not exist.
So you need to create an Inbound Transform to get the correct value before the incident gets updated. You started to create an Inbound Transform but the Information message got you. The message does not pertain to your situation. It has to do with tables and fields in the provider which are not present in the consumer. In this case the Incident table and assignment group field are in both the provider and consumer instances.
Here is an example Inbound transform. I added an else for a default value but not required. output.value and output.label should have a value.
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2025 02:25 PM - edited ‎05-02-2025 02:38 PM
On the remote task in the consumer instance, the Inbound field Assignment Group shows the display value of the group. These Inbound fields are string fields so they can only show one value which is the display value not the value. There is a field which is not on the form called Inbound vars json. This field contains the values and display values of the Inbound fields. You don't need to interact with it directly. The field mappings and transforms will handle this interaction for you.
Your group name is in the Inbound field - Assignment Group. The sys_id of the group is in the Inbound var json. When Service Bridge is writing data to the Incident, it is looking at the value of Assignment Group in the Inbound vars JSON field. This value is the sys_id of the assignment group in the provider instance.
Looking at the screenshot you provided you can see the icon with circle around the i but no value in the reference field. This is because the reference field is holding a sys_id it does not recognize so it displays blank. The value of the assignment group did make it to the Incident but that assignment group sys_id does not exist.
So you need to create an Inbound Transform to get the correct value before the incident gets updated. You started to create an Inbound Transform but the Information message got you. The message does not pertain to your situation. It has to do with tables and fields in the provider which are not present in the consumer. In this case the Incident table and assignment group field are in both the provider and consumer instances.
Here is an example Inbound transform. I added an else for a default value but not required. output.value and output.label should have a value.
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2025 06:34 AM
I have written the script logic given here, the transform it self is not triggering , i have tried adding the gs.log/gs.info, to check exact output value and output label is storing, but logs are also not triggering.
The line 14 i written just to check the remote task variable value whether that is in the shown logs or not, But this log is also not printing.
Also i tried below logic, this is also not working as expected. Could you please correct where exactly i need to make the changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2025 02:31 PM
Is the transform active? The transform needs to be active for it to run. In the screen shot it looks like Consumer Table and Consumer Field can be selected. If the transform is active those fields will be read-only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2025 09:30 PM
It is active, i have tried by activating it also. here i pasted after deactivating.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2025 11:58 PM
Can we make use of the the remote task variables from the inbound fields of remote task,
Here in the consumer instance i can see this tab for syncing the fields data through remote task. will it help to query this remote task and populate the Assignment group on the incident ?