In my Logic App I have a For-Each block that is iterating a json list. Inside the ForEach block, I have a JavaScript step in which I am trying to access the current object of the ForEach.
I have unsuccessfully tried:
workflowContext.actions["For_each"].body
Error: InlineCodeOperationMissing. The inline code action 'JavaScriptCode' execution failed, with error 'The specified action 'For_each' is not in the provided workflowContext. Try including the action by adding it to explicitDependency.actions.
I also tried:
items('For_each').IsEmailSent
InlineCodeScriptRuntimeFailure. The inline code action 'JavaScriptCode' execution failed, with error 'items is not defined'.