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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / (Response ID) versus (...
Power Automate
Unanswered

(Response ID) versus (List of Response Notifications Response ID)

(0) ShareShare
ReportReport
Posted on by 4

I’m trying to create a pretty basic Flow that takes a Form response and logs it to a SharePoint List.  I am trying two approaches:    

  1. Creating a Flow manually from scratch (“Build Automated Flow”) - because I want to learn.
  2. Using a Template - to help me learn.

Walking thru both flows:

  1. The Trigger (When a new a response is submitted) is the exact same for both. 
  2. The next step (Control Connector - Apply to each) is the exact same for both.
  3. The next step is to “Select an output from previous steps.”  Here is where they diverge:
    1. The Templated Flow shows the following options:
      1.  List of response notifications Response Id
      2.  List of response notifications resourceData
      3.  List of response notifications Item
      4.  Body
      5.  List of response notifications
    2. The manually created Flow only shows the following options:
      1. Response Id
      2. resourceData
      3. body

My specific issues/questions are:

  1. Why does the Template version have more dynamic options than building one from scratch?  Shouldn't they be the exact same since they are using the exact same Control Connector --> Apply To Each --> Select An Output From Previous Steps path?
  2. Per my Subject name, Is Response ID the same as List of Response Notifications Response Id?
  3. If the answer to #2 is no, how do I get List of Response Notifications Response Id to appear in the Dynamic options window?

 

Homemade Flow screenshot on left (top if narrow screen).  Template Flow screenshot on right (or bottom).  The Homemade Flow is not working.  The Template one is.  The error is "The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/resourceData/responseId']' is of type 'Integer'. The result must be a valid array." which I have seen and researched and don't yet fully understand.  My (likely terrible) best guess is that the Response Id in the homemade version is an integer and the List of response notifications Response Id in the Template version is an array.  As far as I can tell, that is the  only difference between the two versions.

 

Flow Steps - Manual Version.jpgFlow Steps - Template Version.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-LilyW-msft Profile Picture
    on at

    Hi @SXD 

    Thank you for posting.

    Because some Triggers and Actions will be updated, but these in template is not updated in time. So there may be errors when creating Flow from the template, so advise you create Flow from scratch.

    And you don't need to add an "Apply to each" under the trigger, please add the "Get response details" action directly under the trigger as my screenshot below:

    vLilyWmsft_1-1631081151747.png

    Hope the content above may help you.

    Best Regards

    If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • SXD Profile Picture
    4 on at

    Thanks for the response.  I followed your advice of removing the “Apply to each” action and it worked.  Though I’m glad the Flow worked, my reason for posting was more about knowledge (for me and others) than it was about having a working Flow.  This is the current status of my 3 identical flows: 

    1. Template Flow Working (with Apply to each):  Working
    2. Homemade Flow #1 (with Apply to each):  Not working
    3. Homemade Flow #2 (without Apply to each):  Working.

    This is very confusing as the Template Flow works with the “Apply to each” but the only Homemade Flow that I can get to work does not use “Apply to each.”  The Flow of having a Form update a SharePoint List is not novel.  There are countless online videos instructing people how to do this.  Every single one I have found uses the “Apply to each” command.  Your suggestion was the first time I have seen someone say to not use it – which in a weird way makes it frustrating that it worked.

     

    I’ll trim my original questions and add a few more based on your response:

    1. Per my Subject name, is Response ID the same as List of Response Notifications Response Id?
    2. Can someone explain the “Apply to each” meaning?  My form has 2 questions – let’s pretend its Name and Number.  When someone submits a form, 1 row with 2 columns are updated.  What does “apply to each” mean in this context?  Is it each row (1 item) or each column (2 items)?
    3. Can someone explain the "…execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/resourceData/responseId']' is of type 'Integer'. The result must be a valid array" within the context of my simple Flow?  Which value is the integer and what is the array it is expecting?  (Seems to me that this *may* be related to my question #2). 
  • RobElliott Profile Picture
    10,323 Super User 2025 Season 2 on at

    @SXD 

    1. Per my Subject name, is Response ID the same as List of Response Notifications Response Id? yes, response ID is just the newer title so older flows will still show the List of Response Notifications Response ID.
    2. The Forms template is broken, don't use it.
    3. Never have the Get response details action inside an apply to each. An apply to each is needed where, for example yuou are getting items from a SharePoint list. In that case the appply to each loops through the list and applies whatever actions you have put into the apply to each.

    So always do it the way that @v-LilyW-msft showed.

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • CU16081326-2 Profile Picture
    2 on at
    I'm having the same issue and I'm building it from scratch following instructions from Reza Dorrani's video:  https://youtu.be/Aerky9hiYDo?si=UWnjV1uejBX6qVsW.  I've followed the suggestion to not include a For Each loop directly under the trigger, but I get an error of null in the response ID field when I test it.  When I go edit the flow to check the dynamic content of the Response ID field of Get Response Details it forces me to use the content List of response notifications Response ID, which then creates an apply to each loop automatically.  This in turn throws the same error that the original poster experienced.  How do I get it to stop creating a loop?
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard