cancel
Showing results for 
Search instead for 
Did you mean: 

SUP workflows - parameter mapping needs to be done dynamically

Former Member
0 Kudos

Hi Experts,

I have a requirement where I need to map parameters depending on the menu options selected by the user.

there are three menu options - create, check and send and each of them needs different parameter mappings. for e.g. if user selects create then 'create' should be mapped to corresponding parameter and similarly for others

I thought of changing (adding/removing) keys in related functions in Workflow.js, but not sure if it 'll work or if its a good practice.

Any pointers are appreciated.

Regards,

Victor

Accepted Solutions (0)

Answers (1)

Answers (1)

david_brandow
Contributor
0 Kudos

Your best bet is likely to use the same parameter mappings and change the key values dynamically at runtime in the customBeforeMenuitemClick. You certainly can change the code in Workflow.js, but its not recommended, as it'll be overwritten every time you regenerate (unless you turn the Generate checkbox off).