Need to find Werther the sc_request is created using virtual agent or self-service.

praveen1231
Tera Contributor

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.

praveen1231_1-1727114982765.png

 

 




@shane_faber 

9 REPLIES 9

@praveen_rajan 

 

You are not looking at the right field. Configure the Form Layout to include Contact Type field and retry. Refer below screenshot :

 

AmitVerma_0-1727167982774.png

 


Please mark this response as correct and helpful if it assisted you with your question.

@praveen_rajan 

 

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.

@Amit Verma But there is no contact type field in RITM table. Werther, I need to create new field as contact type?

praveen_rajan_0-1727168835213.png

And channel has the field value as contact_type.

praveen_rajan_1-1727169015808.png

 

@praveen_rajan 

 

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.

@Amit Verma Thanks for sharing your valuable knowledge with me!!