Request item

GRGiri
Tera Contributor

I have created a variable set. which contains the question summary and short description. I created a catalogue and used this variable set in it. Now when i create a request from /esc portal the RITM's short description is not populated form summary. Instead, it is populating the short description of the catalogue item. Can anyone please help?

1 ACCEPTED SOLUTION

Viraj Hudlikar
Giga Sage

Hello @GRGiri 

Multiple ways to achieve this:
You can create a business rule to set the short description of the RITM based on the variable set. Here's an example script you can use in a "before insert" business rule on the RITM table

// Get the variable set value
    var summary = current.variables.summary; // Replace 'summary' with the actual variable name
    if (summary) {
        current.short_description = summary;
    }

 

 If you're using a workflow, you can add a "Run Script" activity to set the short description. Here's an example script for the workflow:

current.short_description = current.variables.summary; // Replace 'summary' with the actual variable name

 

You can also use a catalog client script to set the short description when the form is submitted. Here's an example:

var summary = g_form.getValue('summary'); // Replace 'summary' with the actual variable name
    if (summary) {
        g_form.setValue('short_description', summary);
    }
    return true;

 

 If you're using a flow, you can add a "Update Record" action to set the short description.

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

View solution in original post

2 REPLIES 2

Viraj Hudlikar
Giga Sage

Hello @GRGiri 

Multiple ways to achieve this:
You can create a business rule to set the short description of the RITM based on the variable set. Here's an example script you can use in a "before insert" business rule on the RITM table

// Get the variable set value
    var summary = current.variables.summary; // Replace 'summary' with the actual variable name
    if (summary) {
        current.short_description = summary;
    }

 

 If you're using a workflow, you can add a "Run Script" activity to set the short description. Here's an example script for the workflow:

current.short_description = current.variables.summary; // Replace 'summary' with the actual variable name

 

You can also use a catalog client script to set the short description when the form is submitted. Here's an example:

var summary = g_form.getValue('summary'); // Replace 'summary' with the actual variable name
    if (summary) {
        g_form.setValue('short_description', summary);
    }
    return true;

 

 If you're using a flow, you can add a "Update Record" action to set the short description.

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

Ankur Bawiskar
Tera Patron
Tera Patron

@GRGiri 

RITM's short description won't get populated unless you have your custom solution/logic to it.

You can incorporate the logic in Flow or Workflow. What are you using?

But if the variable editor is seen on RITM form then why to add short description

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader