web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Different behaviour be...
Power Automate
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.

Categories:
  • fchopo Profile Picture
    8,003 Moderator on at

    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

  • rosseli Profile Picture
    9 on at

    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?

  • rosseli Profile Picture
    9 on at

    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.

  • Verified answer
    fchopo Profile Picture
    8,003 Moderator on at

    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

    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!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard