is it possible in service bridge to map between a OOB field and a custom field ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2024 11:24 PM
is it possible in service bridge to map between a OOB field and a custom field ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2024 11:02 AM
Yes, there are two main ways to handle it:
Example 1: There is a state field on Provider and a custom field called u_state on the consumer
1. Since there is a "close match" source and target, the easiest method is to map state > state when creating the definition on the provider. Next, when the consumer receives the definition, they can change the target to u_state before activating the definition.
Example 2: The consumer has a unique field we will call widget that is required but no match for the provider.
2. In this case, the provider can create a virtual outbound mapping called widget that requires no source and set the sync when to never, so it requires no target. Next, the provider makes a virtual outbound transform for widget and uses a script to set the output label and value. Finally the consumer adjusts the mapping to sync on insert or insert/update and then sets the target field to widget before activating the definition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2024 11:14 AM
Thanks @BobbyNow
Next, when the consumer receives the definition, they can change the target to u_state before activating the definition.
This is the key statement that is missing from the documentation. The Virtual Outbound concept makes it seem like this mapping happens at the provider side. I don't see any mention of the consumer needing to configure the map.
https://www.servicenow.com/docs/csh?topicname=service-bridge-v2-create-remote-tasks-defs.html&versio...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2024 11:17 AM
Thank you for the feedback. We will update the docs with this example for clarity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2024 10:40 AM
This question has also been asked here. Pending a response.
How to map the virtual inbound field at consumer s... - ServiceNow Community