Passing Scratchpad values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2022 11:42 AM
I have populated scratchpad value in display business rule in a scoped app.
what I now need to do is access this value in a new child record from this parent?
After this value is populated in parent, I create a new related child, but the scratchpad in the child record does not contain this value.
Any thoughts?
Thanks in advance.
Wade
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2022 11:50 AM
Hi there,
The display business rule only applies on the record itself. So not on a child record for example.
So you would need to setup a display business rule, on that child record.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP
---
LinkedIn
Community article, blog, video list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2022 11:56 AM
Not sure what this means. I can only use scratchpad values populated in BR on the parent record where they were populated?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2022 12:00 PM
I can see a few ways to make sure you have the value on the child during creation.
1 - Put the Display business rule on the child table to get the value from the parent. This may work for a new record if the parent field is set when the form loads. If not see below.
2 - Create a custom UI Action for creating the change record that uses a URL and pass the value via the URL and on the child have a client onLoad script pars it out and set it in the scratchpad.
3 - Put the parent field on the form and use a onChange script to make a Ajax call back to the server to get the value and set it in the scratchpad.