How to copy/capture the variables and variable set responses to catalog task description
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2024 03:01 AM
Hi team, I must copy/capture all the variables including variable sets variables into the catalog task description (REQ->RITM->CATALOG Task) once the catalog item is created and TASK Short description should = catalog item Short description using a flow designer. Please help me, waiting for a solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2024 09:00 AM
Hi @bandideena12 ,
You have variable and variable set information on the catalog task aswell(Variable section) , why do you wanna copy again??
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2024 02:19 AM
Yes, we have variable and variable set information on the catalog task (Variable section) but the client needs them in the description field too. So I am struggling with that.......

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2024 07:55 AM
Hi @bandideena12 ,
ok, Create a on after Business Rule on sc_task table with below logic
var result = " ";
var now_GR = new GlideRecord('sc_req_item');
if (now_GR.get(current.request_item)) {
var variables = now_GR.variables.getElements();
for (var i = 0; i < variables.length; i++) {
var question = variables[i].getQuestion();
result = result + "\n" + question.getLabel() + ":" + question.getValue();
}
}
current.description = result;
current.update();
Result:
Example
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 10:40 PM
Sorry, correction in question..... all variables need to copy/capture/pass to the task (service task) description field not to catalog task. Thank you and please provide the solution.