Hi sdnd2000
Thank you for reaching out on Microsoft Q&A!
Since you’re already in the for each loop, you want to the current iteration instead of referring to the select action (which holds the entire array). For this you need to add the foreach loop to the Actions using the parameters to explicitly load the contents:
In the appearing box now add the name:
For_each
Within your inline code block you can now refer to the attributes by selecting them like this:
var text = workflowContext.actions.For_each.foreach.Headers1
Please click “Accept answer” if you find this helpful. Feel free to drop additional queries in the comments below!
Kind regards,
Sonny