- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2022 10:05 PM
If an incident is created through the employee center portal, then channel field should default to self-service and if it is created through virtual agent it should default to virtual agent.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2022 01:42 AM
Hi @Shiva prasad t ,
You may used utilities as Record Action and Action type as create record and selected table as incident. You can add field and set contact type as Virtual agent.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2022 11:09 PM
Hi @Shiva prasad t ,
Refer below article.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0958394
ServiceNow Community MVP 2024.
Thanks,
Pavankumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2022 11:14 PM
But According to the kb_article contact type field is always default to self service.
In my scenario, when the incident is created through employee center portal then only it should be self service. And if it's created through virtual agent using chatbot from the portal then it's default to virtual agent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2022 11:59 PM
Hi @Shiva prasad t ,
By default you will get contact type whether it is portal or virtual agent. But not sure if it is record producer and topic on virtual agent.
1. On record Producer script use below script.
current.contact_type = 'self-service';
2. On virtual agent how you are creating incident is it a OOTB topic or custom topic.
you can set contact type as virtual agent on topic.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2022 12:54 AM
Hello @Pavankumar_1
On virtual agent we are creating incident in custom topic.
So can you please tell us how we can add contact type in virtual agent. But we don't need to take it as a question. Instead of that we need to add it in script only.
For example: for category which we had taken as question in the flow, we had taken like this in the script ( incidentGr.category = vaInputs.category;). so for contact type field how can we take it even if it is not a question in the flow