How to concatenate two catalog variables value to new variable which is hidden in the catalog form, and display that hidden catalog variable in RITM form

Arkesh Kumar
Giga Guru

How to concatenate two catalog variables value to new variable which is hidden in the catalog form, and display that hidden catalog variable in RITM form

find_real_file.png

 

I need to concatenate "International dailling code" and "Landline Number" into "Landline" Variable

"International dailling code" and "Landline Number" Variables are visible to user in catalog form but "Landline" variable only visible in RITM

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Arkesh,

You can create a Before insert or update business rule against sc_req_item and filter condition to only trigger against respective catalog item i.e item | is | XYZ with script as

if(current.variables.PASS International dailling code VARIABLE NAME && current.variables. PASS VARIABLELandline Number" NAME HERE)

{

current.variables.Landline = current.variables.PASS International dailling code VARIABLE NAME + current.variables.PASS VARIABLELandline Number" NAME HERE;

}

View solution in original post

9 REPLIES 9

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Arkesh,

You can create a Before insert or update business rule against sc_req_item and filter condition to only trigger against respective catalog item i.e item | is | XYZ with script as

if(current.variables.PASS International dailling code VARIABLE NAME && current.variables. PASS VARIABLELandline Number" NAME HERE)

{

current.variables.Landline = current.variables.PASS International dailling code VARIABLE NAME + current.variables.PASS VARIABLELandline Number" NAME HERE;

}

Hi Pradeep,

 

If someone posts later that does not mean it a copy of previous comments its community & all has rights to post but yes its upto user to mark correct, helpful what user feels.

For now getting the comments deleted. Hope you would follow the same.

Hi Jaspal - Everyone has the right to post it. All I mentioned in my comment to you that you have deleted was just "Repeat" i.e means the same response is repeated. The response you have shared was 6 minutes after I replied to the question. Hence there is no question of correct/helpful at all. It is absolutely up to the author to decide it. NO question on that.

That said it doesn't add any value if the same response is repeated. thanks for your understanding.

 

Unfortunately. Yes, seems our thoughts conflicted also, at times you don't get to see comments immeditaely if multiple tabs are opened.

Anyways, our purpose is to serve community & which we are.