Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Fields Value undefined

Vengeful
Mega Sage

Hello, I have a BR to create Change Request from our Requested Item.

Vengeful_0-1710483638720.png

But the result of the Description field in Change request is like this

Vengeful_0-1710483459733.png

The expected result should be the value fill up by user like below. 

Vengeful_1-1710483531316.png

 

1 ACCEPTED SOLUTION

Harish KM
Kilo Patron

Hi @Vengeful to access variable values you need to use below code

current.variables.variablename which will be if it's a reference variable then use

current.variables.variablename.getDisplayValue()

var description = "Application Name: "+current.variables.system_application // replace for other by adding current.variables.variableName;

Regards
Harish

View solution in original post

4 REPLIES 4

mhegde1
Kilo Sage

Hi @Vengeful ,

 

Can you just add single quotes for your variable description.

something like this:

var description = '"application : " + current.system_application + "\n"

"Report Name : " + current.report_name + "\n"';

 

thanks,

 

Gopal Allu
Tera Expert

Hi @Vengeful ,

 

Can you try current.field_name.toString().

 

Please mark it correct/helpful. If it resolved your issue.

 

Thanks and Regards,

Allu Gopal.

Harish KM
Kilo Patron

Hi @Vengeful to access variable values you need to use below code

current.variables.variablename which will be if it's a reference variable then use

current.variables.variablename.getDisplayValue()

var description = "Application Name: "+current.variables.system_application // replace for other by adding current.variables.variableName;

Regards
Harish

Dhananjay Pawar
Kilo Sage

Hi,

Replace your 'var description' code to below one.

var description = "Application:" current.variables.system_application + "\n" +
"Report Name:"current.variables.report_name + "\n" +
"Type of Report: current.variables.type_of_report + "\n" +
"Purpose of Report:" + current.variables.purpose_of_report + "\n" +
"Data Source:"current.variables.data_source + "\n" +
"Report Grouping: +current.variables.report_grouping + "\n" + 
"Users needing report access:"+ current.variables.users_needing_report_access.getDisplayValue() + "\n" +
"Security Hierarchy If Applicable/Access Filters (e.g. Restrict access by department, account, BU, or 'No restrictions):"+current.variables.security_hierarchy_if_applicable_access_filters+ "\n" +
"Frequency of data refresh:"+ current.variables.frequency_of_data_refresh;

 

Thanks.