How does interaction associate with the incident reocrd created using a form in service portal in agent workspace?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2021 04:54 PM
Hi all,
I am trying to work out how ServiceNow OOTB works to associate a newly created incident record from a form in agent workspace service portal with interaction, using the OOTB "Create Request" button.
Steps:
1. Login as an ITIL user and create a new interaction in Agent Workspace, then click on "Create Request" button
2. It opens up a new sub-tab of catalog page, and use the sample "Create Incident" form to create an incident.
3. After the form is submitted, it creates an incident record. What I have noticed is the system automatically associates this newly created incident record with the interaction record.
Something I have observed:
- The associate between these two records are actually through a new record inserted in interaction_related_record table. But it seems that it doesn't occur instantly at the time when incident was created. It takes some time for this record to be created in this table.
- I have looked at the business rules for interaction_related_record table, but doesn't look like any BR would have performed this action.
- I have also looked at the code in the "Create Request" UI action, but doesn't look like there is any logic written specifically to create a new record in interaction_related_record table following the opening up of the form or creation of the incident record.
Does anyone know how ServiceNow does this association? How does it get triggered?
Cheers
Johnny
- Labels:
-
Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2021 12:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2021 02:39 AM
Hi
Did my reply answer your question?
If so, please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
If not, please tell me what you are still missing!
Kind regards
Maik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 12:10 AM
Thanks for the reply.
But this code seems in the lookupVerify ui action, not in create request.
Johnny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 12:28 AM
Hi
to my mind it is the Business Rule "Link interction m2m" (yes, the name has been misspelled by the creator of this BR) which does the magic.
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.