When I create a catalog item autopopulate short description

amacqueen
Mega Guru

When I create a catalogue item for a certain country I want the name of the catalog item to autopopulate the short description field followed by the name of one of the variables, so for example if the cat item name is French Application  I want the short description field to display French Application - {Variable_name} I also want to apply a condition 'where the caller country code is France'.

Is this possible and if so how?

Many thanks

1 ACCEPTED SOLUTION

Worked for me when I used the sc_req_item table.

Many thanks

View solution in original post

5 REPLIES 5

Allen Andreas
Administrator
Administrator

Hello,

You can set the description in the flow or workflow for the respective catalog item process.

By default, I believe, the short description is already set to the catalog item name, so you'd just concatenate a "- variable" to it.

If in workflow, you can use a Run Script activity to accomplish this by using something like:

current.short_description = current.getValue('short_description') + " - " + current.variables.variable_name;

In Flow Designer, you can use the update record action and do much of the same.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi @amacqueen 

I just wanted to check in on this and see how you're doing.

If my reply helped guide you Correctly, please mark it as Correct.

If any reply was Helpful, please mark it as Helpful.

Thanks and take care! šŸ™‚


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Worked for me when I used the sc_req_item table.

Many thanks

Mohit Kaushik
Mega Sage
Mega Sage

Hi There,

You can create a run script in your workflow and use that to populate the short description.

Script can be something like this:

current.short_description  = current.item.name+'-'+current.variables.<your variable name>;

 

I would like to know more about your condition part though. Where do you want the condition to be applied.

 

Please mark this as correct and helpful if it resolved the query or lead you in right direction.

Thanks,
Mohit Kaushik
Community Rising Star 2022

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)