Passing Scratchpad values

Wade Clairmont
Tera Guru

I have populated scratchpad value in display business rule in a scoped app.

find_real_file.png

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.

find_real_file.png

Any thoughts?


Thanks in advance.

Wade

3 REPLIES 3

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

Not sure what this means.  I can only use scratchpad values populated in BR on the parent record where they were populated?

 

DrewW
Mega Sage
Mega Sage

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.