how to refresh a embeded list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2016 05:01 AM
I need to refresh the embeded list( of table pq) which is kept on other table(xyz) form. I am inserting values of xyz into the pq table with mapping fields through script.
The values are inserting into the table pq but its not showing in the embeded list on time. When I am reloading the page ,the values are shown in the embeded list.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2017 06:52 AM
If you are creating or updating records in a related list (including embedded list) then you should go with After business rules.
Business Rules Best Practices - ServiceNow Wiki
System Definition> Relationships is a way for you to define a related list based on script or filter an existing table (w/script). I haven't tried placing a defined related list on a form as an embedded related list. Interesting use case.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2017 11:31 PM
Hi Chuck,
I have written after Business rule and it's updating in the table. but the result is not reflecting in embedded list
once i select the value and submit the form it should so the result in embedded list. script is perfectly fine. i checked in "Script-Background" as well as i have checked in log.
Thanks,
Harshvardhan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2017 12:26 AM
Can you add a info message in the business rule and see if it getting executed or not?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2017 01:21 AM
I did that also. even the values are updating in the table. but i don't know why it's not coming in embedded list

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2017 06:49 AM
Can you share the business rule you are using?