This one helps! additonally im facing an issue with the same workflow..
We’re currently routing all access requests through a Launcher using Workflow Forms. The form consists of two primary fields:
- Access
- Hospital (configured as an entitlement backed by a Flat File connector)
Our requirement is to maintain all access values selected by the user/manager in a separate Flat File account. The challenge I’m facing is that the current update operation always overwrites the existing value instead of appending to it.
For example:
- First request: Access = A → Flat File is updated correctly.
- Second request: Access = B → The existing value A is overwritten, resulting in B.
- Expected behavior: The existing values should be preserved and the new value should be appended.
Example:
- Existing Access: [A, B]
- New Access Request: C
- Expected Result: [A, B, C]
The complication here is that the existing access values are returned as an array, whereas the newly selected access from the form is a string. Because of this string/array combination, I haven’t been able to append the value successfully. I also tried using a Define Variable step with concatenation, but it didn’t produce the expected result.
I’m also facing another issue in the same workflow.
Before provisioning, I’m validating whether the processing identity already has an account in a specific source. Based on the result:
- If the account exists, I perform a PATCH operation.
- If the account doesn’t exist, I create a new account.
Since this validation is happening inside a Loop, the logic isn’t behaving as expected.
For example, assume the source already contains the following accounts:
A
B
C
During each loop iteration, I’m comparing the account’s email with:
$.getIdentity.attributes.email
If the first account (A) matches, I know the account already exists. However, the loop continues to evaluate B and C. Since those comparisons don’t match the current identity, the workflow incorrectly assumes the account doesn’t exist and attempts to execute the Create Account operation, even though the account already exists in the source.
Ideally, once a matching account is found, the workflow should stop further validation for the remaining accounts and proceed with the PATCH operation instead of continuing through the loop and triggering an unnecessary account creation.
Have you come across a similar scenario before, or do you have any suggestions or workarounds for handling either of these issues? Any guidance would be greatly appreciated. Thanks!