Auto Populating not working in platform view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2025 11:44 PM
Hello All,
I've a requirement to populate a List collector variable based on a selected reference variable related list records . I wrote a script include and onChange Client script to achieve this. This is working fine in Service Portal however not working on Platform view(Using TRY IT UI Action On record producer).
Thanks in Advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2025 11:47 PM
Hi @Avee90,
Could you please share more details, so that it will be easy to understand the exact issue?
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 12:00 AM
Sure, I've record producer in that there are two variables. one is a reference variable(A) and second is a List collector variable(B - Referring to Group). So, the table which I referred in A variable have a related list(Group). So, whenever I select any record in A variable then A variable's related list's groups should be populate in the variable B.
I wrote a script include and Client script to achieve this. This is working fine on Service Portal mean the B variable populated the groups that A variable related list have.
But this is not working in Platform View( TRY IT on the Record producer)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 10:53 PM
Hi @Sagar Pagar ,
The requirement is to populate specific related records in the List collector variable. I've added the script include and OnChange client script.
Thanks in Advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 12:55 AM
I hope your client script is marked UI Type - ALL?
if not then it won't work in classic native view
Did you check if script include got called when you clicked "Try It" ?
what debugging did you do?
share screenshots of client script and script include
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader