Is it possible to specify which javascript file should be run by reading a flow variable in a Javascript callout policy?
@Madhumita Kumari - Javascript callout policy doesn't allow conditions. But you can put conditions around different javascript policies for execution in policy or target files.
<Step> <Condition>...</Condition> <Name>JavaScript.A</Name> </Step> <Step> <Condition>...</Condition> <Name>JavaScript.B</Name> </Step> <Step> <Condition>...</Condition> <Name>JavaScript.C</Name> </Step>
You could also have a single JavaScript entry point and then route within that code to the desired function or class based on the value of the flow variable.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |