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 / Empty PowerApps Collec...
Power Automate
Unanswered

Empty PowerApps Collection

(0) ShareShare
ReportReport
Posted on by 67
Hi,
I'm currently having a problem with my Power Automate flow, which is connected to a PowerApp. The PowerApp itself is working fine (it's writing to the data source reliably), so I figure there must be a problem with the flow. 
The issue is that when the user hits 'Submit', using the Power Apps (V2) trigger, the collection it gathers shows as empty. This is more of a PowerApps thing, but I know the collection isn't empty in the App as I've disabled the Submit button if the collection is empty. Anyway, see below:
I've switched from the new designer to classic/old designer and hopefully that may have been the problem, but I'm stumped.  Any help would be greatly appreciated!
Categories:
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    68,707 Most Valuable Professional on at
    Can you show the Run formula you are using in Power Apps? The problem is that the v2 trigger doesn't have a data type for a collection, so you need to send the collection as JSON text and then do a Parse JSON on it in the Flow to get it back to an array of objects.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • kona134 Profile Picture
    67 on at
     Sure, the run formula is: 
     
      LoadEvalAppSendSP.Run(
            JSON(
                collection2,
                JSONFormat.IgnoreBinaryData & JSONFormat.IgnoreUnsupportedTypes
            ),
            JSON(varRoute),
            JSON(displayName)
        ));
     
    And the rest of the flow looks like this (after the PowerApps V2 trigger):
     
  • kona134 Profile Picture
    67 on at
    After further investigation, I think it's because the trigger condition isn't reading the inputs correctly. Example below:
    varRoute and collection2 are switched.
    The order of this in the .Run sequence is the same as the in the flow, but I'm confused as to why the trigger condition isn't reading the inputs correctly?

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard