Need help with Workflow logic

Hi everyone,

I’m currently working on Forms and Workflows to create a Business Role.

In the form, I’m capturing the following details:

  • Role name

  • List of Access Profiles

  • Role owner details

In the workflow, I’m using a loop, and inside the loop I’ve configured a Generic Approval Policy to get approvals from the Access Profile owners.

My requirement is to identify:

  • Which Access Profiles were approved

  • Which Access Profiles were rejected

However, I’m not able to get these details from the loop output, as no values are being returned.

Has anyone worked on a similar requirement?

Alternatively, can someone suggest a better workflow logic or approach to achieve this requirement for Role creation?

I like what you are trying to achieve, but it doesn’t fit into the vision that the loop operator was based on. If you look at the doc for the loop operator, it says: “Later actions and operators in the workflow can begin before the loop step has finished iterating over all objects in the list. However, the workflow itself can’t end until the loop has finished executing. For this reason, adding additional steps outside of the loop between the Loop operator and the end step is not recommended.“

Based on that alone, it sounds like your workflow could potentially send off all the forms, then process the remaining steps in the workflow, and then just sit and wait for the forms to be submitted/cancelled before ending.

For your use case, you could build something outside of ISC (UI dev kit or otherwise), or put a limit on how many APs can be added in a given request. If you place a limit, then instead of a loop you can explicitly call the forms and read the result. The logic will be uglier, but it would work. If someone wanted 50 APs and you limit the form to 5, they would have to make 10 separate requests.

Intro to the UI Dev Kit here: