Need to find Werther the sc_request is created using virtual agent or self-service.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2024 11:03 AM - edited ‎09-23-2024 11:10 AM
Hello everyone,
I have a requirement to determine whether a Request and its associated RITM were created through a Virtual Agent or self-service. If the creation occurred via the Virtual Agent chat, the state field in the `sc_request` table needs to be set to "Pending." Could anyone share ideas on how to achieve this with server side or client side scripting's and without using a Virtual Agent flow. Thanks in advance!
For example need to find RITM0072313 is submitted via virtual agent or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 01:54 AM
You are not looking at the right field. Configure the Form Layout to include Contact Type field and retry. Refer below screenshot :
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 01:55 AM
Also, you should name the Business Rule and save it so that it can execute.
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 02:07 AM - edited ‎09-24-2024 02:10 AM
@Amit Verma But there is no contact type field in RITM table. Werther, I need to create new field as contact type?
And channel has the field value as contact_type.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 02:55 AM
I just tried simulating this on my PDI. When a RITM is submitted via Virtual Agent, it is not creating Interaction Related Record task for Service Requests and Incidents so this approach will not work.
Alternatively, the only way I see as of now is to set the contact_type from the Virtual Agent itself. Let me go through some of the tables to find a way by that time.
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 03:24 AM
@Amit Verma Thanks for sharing your valuable knowledge with me!!