- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello,
I have created a custom action in flow designer, where one of my inputs is the variables of the submitted catalog item in string.
Since this is an action used across many catalog items, I want to take automatically the variables associated with the submitted catalog item.
Therefore, I tried to use the following code but it doesnt work:
Any ideas?
Thank you,
Smith.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
A better approach may be to use the requested item / trigger record as the single input to the custom action. In the action this would look like
Then in the script in the custom action you can get the variables, then loop through them using something like this:
var ritmVariables=inputs.ritm.variables.getElements();
ritmVariables.forEach(function(grvariable){
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
A better approach may be to use the requested item / trigger record as the single input to the custom action. In the action this would look like
Then in the script in the custom action you can get the variables, then loop through them using something like this:
var ritmVariables=inputs.ritm.variables.getElements();
ritmVariables.forEach(function(grvariable){
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
This helped a lot, thank you 🙂