IdentityNow Workflows: Executing Beanshell Scripts/Rules

Hi,

Is there a way to build custom API calls through a workflow? I want to make an API call that requires a CSV file attached, and the CSV needs to be constructed. This API call needs to go out on a certain trigger, based on the user’s identity attributes.

One way I can think of doing this is via Event Triggers, where a listener web app handles the complex logic. But I’m exploring if this can be done via workflows, where a block of beanshell code gets executed. Is this possible at the moment via workflows or is there a plan to have IDN workflows execute custom code?

Hi Sushant,

To call an external API call through Workflows, you would want to use the HTTP Request action.

If you are wanting to write beanshell (or other programming languages) directly in Workflows—that isn’t supported—at least not yet!

1 Like

@jordan_violet Thanks for the info!

You’re right, I was planning to use the HTTP Request action for this, but the only caveat being the dynamic nature of the request body (creating and attaching CSVs) which needs some scripting to achieve the desired result. If that’s not available at the moment, I’ll look into exploring some other alternatives for now.

1 Like