Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Populate Short Description with Form Variable Values in requested item record

Sahar_Kaizer
Tera Contributor

Hi,

 

I've set up a catalog item named 'change site' that includes fields like 'version,' 'unit,' and 'system.'

Additionally, I've created a business rule that, upon saving the record, should populate the 'short_description' field of the requested item with a string composed of the chosen values in the mentioned fields - 'chosen version / chosen unit / chosen system/ request name', but it doesnt work.

this is the business rule:

Sahar_Kaizer_0-1703688843878.png

 

However, I'm encountering some challenges with this setup. Could someone please provide guidance or suggestions?

 

Thanks,

Sahar

15 REPLIES 15

AparnaSahu
Tera Guru
Tera Guru

 

Try this 

current.short_description = 'Variable value is ' + current.variables.variableName;
current.setWorkflow(false); // to avoid triggering BR
current.update();

If my response helped please mark it correct.

Thanks,

Aparna