Pass value from UI action to new record in URL

mballinger
Mega Guru

Hello,

I have a requirement to prepopulate fields from a UI action to a new record. The UI action creates a new shell record that is not saved until it has been filled out. Now, I need to prepopulate the fields from my current record to the new record. How can I do this? There are several fields that need to be prepopulated on the shell record. 

Another thing I may have difficulty doing is matching reference fields sys_ids. Both the current record (record we are creating the new record from) and the new record, are in 2 different scoped apps that do not use the same references. For those, I will need to pass the display value to the URL so that I can prepopulate the new record.

thanks!

 

1 REPLY 1

Tudor
Tera Guru

Hi,

I'd say that within your UI action you will need to construct the URL with parameters.

Please feel free and refer to the below links:

https://www.youtube.com/watch?v=QHMQEis8nno&ab_channel=HarditSingh

https://community.servicenow.com/community?id=community_blog&sys_id=596dea29dbd0dbc01dcaf3231f96190b

Hope this helps,

 Tudor