Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Different behaviour between tenants? Apply to each issue with forms data

(0) ShareShare
ReportReport
Posted on by 9

My employer was acquired in the last year and as such we've moved across to their O365 tenant. I've recreated a flow that was working perfectly on the old tenant (put form responses into html tables and email them), but now seems to be causing issues.

I have an 'apply to each' step that, in the old flow, used 'outputs('Get_response_details')?['body/value'] as its output from a previous step. In the new tenant, my only options seem to be body, body/resourceData, and body/resourceData/responseId, and manually inputting body/value gives the following error:

 

 

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@outputs('Get_response_details')?['body/value']' is of type 'Null'. The result must be a valid array.

 

 

All other options are of Object type, and similarly do not work.

 

Has anyone experienced (and hopefully resolved) this before? Any help is appreciated.

  • rosseli Profile Picture
    9 on at
    Re: Different behaviour between tenants? Apply to each issue with forms data

    I removed the 'apply to all' section and it's working now. I think I'd followed a tutorial a couple years ago and they'd included that step. Thanks for your help!

  • Verified answer
    fchopo Profile Picture
    7,972 Super User 2025 Season 1 on at
    Re: Different behaviour between tenants? Apply to each issue with forms data

    Honestly, I don't know why you need the "apply to each". When working with Forms whenever someone submits a new response, you would normally do the following:

    forms.png

     Hope that helps!

    Ferran

  • rosseli Profile Picture
    9 on at
    Re: Different behaviour between tenants? Apply to each issue with forms data

    The 'List of response notifications' does not appear as an option for dynamic content in the new tenant. I can see that there is a deprecated version of 'When a new response is submitted' which has this option but I can't tell if the current version should have it too. The flow on the old tenant was written in 2021 so this might be the issue but I'm not sure.

  • rosseli Profile Picture
    9 on at
    Re: Different behaviour between tenants? Apply to each issue with forms data

    Hi,

    I've created a test flow that only has the 'When a new response is created' trigger' and an 'apply to each' step. In the settings of the trigger, it gives "@triggerOutputs()?['body/value']" as its array value, which is the value I was able to use under my previous tenant in the apply to each step, but that no longer seems to work. It's the same form as before, I'd duplicated it using a share link to the form on the old tenant, and the forms connection seems to be set up properly. I've also created a basic test form from scratch and the same issue persists.

     

    Any clue why it doesn't work?

  • fchopo Profile Picture
    7,972 Super User 2025 Season 1 on at
    Re: Different behaviour between tenants? Apply to each issue with forms data

    Hi @rosseli 

    Are all the connections in your workflow properly configured? Besides that, could you check you have the same actions in the workflow? It seems in the new one the "get response details" (forms) is missing.

    Hope it helps!

    Ferran

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1