- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 01:19 PM
Hey guys,
I need your help!
I am trying to update a catalog variable in the middle of a workflow using flow designer
I don't see an OOB option to do that and when I tried this script as an action it didn't work. I am getting the variable value, but it won't change it
Thanks!
Solved! Go to Solution.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 02:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 02:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2021 04:17 PM
Hi Taha,
I have a query regarding to flow designer, My requirement is to set the variable value in RITM for the specific Catalog Item.
I created the trigger as Service Catalog, Action Get Catalog Variable from HR Job Profile (Catalog Item). And selected all the variables there too. But got stuck in the step to set the variable's value.
Suppose, I have a checkbox variable i.e. "ABC" and like to set "True".
I tried with Run Script but still no luck.
var nameOfABCVariable = fd_data._1__get_catalog_variables.abc.getName();
gs.log("abc name: " + nameOfABCVariable);
In log, it's printing as undefined.
However, if I used like this then it returns as true even it is not defined by the user in the RITM record.
var nameOfABCVariable = fd_data._1__get_catalog_variables.abc;
gs.log("abc name: " + nameOfABCVariable);
Therefore, could you please guide or help in setting this up or is there any example available then kindly share.
Quick help must be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2020 11:07 PM
There is a even simpler way, in your case:
(function execute(inputs, outputs) {
inputs.ritim.variables.request_type = 'revoke_all_access';
inputs.ritim.update();
})(inputs, outputs);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2020 08:54 AM
this is still within the flow designer? I am also looking for a way to UPDATE catalog variable.