Hi Jonny,

 

I was reading this thread and I have a requirement to pass the current Change request number and update the work notes with that number.

Could you please let me know how do I pass the current change request number?

 

I am trying like this and it's printed the comment but couldn't able to pass the current change request number.

 

addParam(form, 'sysparm_query', queryParam + '^u_copied_change=true' +'^work_notes =This Change has been copied from:' + ????????);

Any help will be much appreciated!!!

Hi Jonny,

 

I have sorted out.

Though Thank You.

How are you reading the URL, in the browser the parameter added is not visible. I used GlideUrl API to read that parameter but no luck.

Cheyenne1
Kilo Guru

My recommendation would be to 'Insert and Stay' to make a copy of the UI Action and then make the changes so you aren't modifying anything OOTB as it could potentially impact future upgrades.

I was planning on creating a copy of the OOB UI Action and modifying the copy, for the exact reason.