- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2025 11:15 AM
Hi,
I have created a custom Action in Flow Designer by passing three inputs: notes, owner, number (by using Get Catalog Variables) and I'm able to concatenate and get it into a output variable.
I'm not able to use the output to update another catalog variable in Flow Designer. Please suggest me here on how to use this output to update another catalog variable here. Attaching the screenshot of Action.
I tried using Get Catalog Variables but when i select the table the desired variable is not available.
Thank you!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2025 11:39 AM
Hi @Shidhi,
Is your action returning the expected value? Could you do gs.info within your script action to check if you are getting the expected the results. Then, you can adjust your your script action as follow:
- Include a new input in your Action which is a reference to the RITM which you need to update.
- Adjust your script action as follow:
var groupowner = inputs.groupowner;
var groupnotes = inputs.groupnotes;
var sctasknumber = inputs.sctasknumber;
var ritm = inputs.ritm; //Your new input
var notes = groupnotes + '|' + sctasknumber + '|Owner:' + groupowner;
var gr = new GlideRecord("sc_req_item"); //Use sc_task if you would like to update a SC Task
if (gr.get(ritm.sys_id)) {
gr.variables.YOUR_VARIABLE = notes; //replace YOUR_VARIABLE with the variable you would like to update
gr.update();
}
- You won't need to return the notes in this case as it would be already updated, you just need to pass the RITM when calling the Flow Action
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2025 11:39 AM
Hi @Shidhi,
Is your action returning the expected value? Could you do gs.info within your script action to check if you are getting the expected the results. Then, you can adjust your your script action as follow:
- Include a new input in your Action which is a reference to the RITM which you need to update.
- Adjust your script action as follow:
var groupowner = inputs.groupowner;
var groupnotes = inputs.groupnotes;
var sctasknumber = inputs.sctasknumber;
var ritm = inputs.ritm; //Your new input
var notes = groupnotes + '|' + sctasknumber + '|Owner:' + groupowner;
var gr = new GlideRecord("sc_req_item"); //Use sc_task if you would like to update a SC Task
if (gr.get(ritm.sys_id)) {
gr.variables.YOUR_VARIABLE = notes; //replace YOUR_VARIABLE with the variable you would like to update
gr.update();
}
- You won't need to return the notes in this case as it would be already updated, you just need to pass the RITM when calling the Flow Action
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2025 10:38 AM
Hi @Medi C,
I have used your script and it worked fine in dev but when i moved it to QA, the run time value of 'Get Catalog Variables' action(just after concatenating and updating the variable, created an action to get the value) is coming empty though it is working fine in dev. I have checked the flow and backend value of variable it is fine. Please help me in this.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2025 10:07 AM
Hi @Shidhi,
Could you please share screenshots from your Flow and Flow execution?
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2025 06:18 AM
Hi @Medi C ,
After making the variables Global the issue is solved and I marked your previous response as Solution. Thanks for your help.