Hey Jimmy,
From my understanding, it seems like you want to use the name from the operation Reference to extract and search this steps array, to find the name of the next step. In your example “Stud Weld”?
This IML function would return the name of the next step:
Here is the blueprint of my example, so you can import it and understand better.
blueprint (3).json (6.3 KB)
I will break down the IML step by step
Step 1: Map your steps array by Name (here I used Operation.Name, just confirm these are the “raw” values in by downloading the output.
Step 2: Convert this list of names into a string (join step 1 with a comma)
Step 3: Replace the part of the string where the Name = the Name from your Operation Reference (in my screenshot this is TIG_WELD, in your case it would be TIG WELD, but this would be dynamically mapped in your real scenario)
In my IML I am replacing it with “PLACEHOLDER”, but you can replace it with anything string (as long as it will never be the name of a step)
Step 4: Now split this string by the temporary value + ,
Step 5: Get the last item from our output list from step 4 (this will include the next step we want)
Step 6: Split the last item by comma
Step 7: Get the first item from Step 6
Output for each:
If I didn’t understand your question properly, please let me know