Channel field was showing "phone" for both incidents created from portal and mobile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 07:13 PM
Channel field was showing "phone" for both incidents created from portal and mobile. How could I differentiate whether the incident is created from portal or from mobile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 08:09 PM
If you are using "Create a new Incident" on portal, this is a record producer that you need to check and update the producer script with an option as a "portal" for Channel field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 08:28 PM
Hello, there are lot of forms for this, I can't update all the forms.
thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 08:40 PM
Hi @Ak8977
if you follow the proposed way with changing the record producer you have some work because OOTB portal widgets have to be cloned, and then cloned and modified widget has to be incorporated into the existing page, a.s.o.
And also this makes no sense if you are using the same record producer on both sides.
But there is also an approach with a new simple Business Rule: The challenge is to find out where the request came from (Service Portal, Classic UI or even any Workspace). For this purpose you can examine the current request URL via:
GlideTransaction.get().getRequest().getRequestURL()
Based on the returned result, you can decide how to proceed.
Maik