Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Exporting Collection to powerautomate

(0) ShareShare
ReportReport
Posted on by

Hi Fam

 

I have 2 sharepoint lists. One master list of meeting decisions - DecisionGrid. The 2nd list - DecisionGridProgress has items/ feedback linked to DecisionGrid by the ID.  I am viewing the grid through a gallery and am able to show the feedback items from DecisionGridfeedback in one text field using Concat and nesting the Progress gallery. 

 

Nested Gallery item :

AddColumns(Filter(DecisionGridProgress;Text(ThisItem.ID)= DecisionID);
"Branch&Progress";Concatenate("<i>";"(";Text(ThisItem.Created;"dd-mmm-yyyy");")";"</i>"; Branch;" : ";DecisionProgress))

 

I can running a concat to join all fields into don't HTML text field as follows:

   Concat(Galprog.AllItems;'Branch&Progress';"<br>")

 

Through an export button, I am creating a collection as follows:

ClearCollect(
colDecisionGridExport;GalViewDecisions.AllItems);;
PowerappsExportDecisionGridV2.Run(JSON(colDecisionGridExport;JSONFormat.IgnoreBinaryData & JSONFormat.IgnoreUnsupportedTypes);
User().Email)

 

When i view the collection, i cant see the data for the added column. The label is there but the column data shows "Control-Undefined". When i view the JSON of the export, i also dont see the column in powerautomate.

 

error.png

 

Any ideas will be appreciated.

 

  • Verified answer
    Zaid-Aboobaker Profile Picture
    on at
    Re: Exporting Collection to powerautomate

    Hi All. I have bypassed the problem as follows:

     

     I created a progress column in the primary list and patched progress to the existing column as well as the linked list. this way there is no need for gymnastics to get the data from the linked/related list. i can then get the un-complex columns into the collection and export it to powerautomate.

  • Zaid-Aboobaker Profile Picture
    on at
    Re: Exporting Collection to powerautomate

    Hi...thank you for replying.

     

    So ive used your idea to do this:

     

    Concat(Filter(DecisionGridProgress;ThisItem.ID= DecID);DecisionProgress;"<br>")

     

    i.e. filter the 2nd sharepoint list by the ID, and return all the progress items. That works, but how do I get additional columns from the 2nd sharepoint list into this concat. I want to show something like this.

     

    "Created date" - "branch name1" - Progress

    "Created date" - "branch name2" - Progress

    "Created date" - "branch name3" - Progress

     

    Not using the nested galleries has still not sorted out the "Control-Undefined" problem in the collection for exporting. 

     

    htmltextprogress2.pnghtmltextprogress.png

  • gcmfaizan Profile Picture
    1,022 on at
    Re: Exporting Collection to powerautomate

    Hi @Zaid-Aboobaker 

     

    Instead of using nested galleries, try using a single gallery to display the data. You can use the LookUp function within the Concat function to gather the related data. For example:

     

     

    Concat(Galprog.AllItems, Concatenate("", "(", Text(LookUp(DecisionGridProgress, ID = ThisItem.ID).Created, "dd-mmm-yyyy"), ")", "", Branch, " : ", DecisionProgress), "
    ")

     

     

    Accept it as solution if my post helps you.

     

    Cheers!

     

  • narayan225 Profile Picture
    2,449 Super User 2025 Season 1 on at
    Re: Exporting Collection to powerautomate

    @Hmaldonado 

    You can try checking the flow run history to see what is being sent to the flow and check if that is formatted correctly.

     

    Also check what the flow returns as well. If the returned data is not formatted correctly. It will not display properly in your collection.

     

    Cheers!

  • Hmaldonado Profile Picture
    21 on at
    Re: Exporting Collection to powerautomate

    solutions for this?

     

    I am trying to pass a JSON to a collection but the control-undefined is also showing.

  • narayan225 Profile Picture
    2,449 Super User 2025 Season 1 on at
    Re: Exporting Collection to powerautomate

    @Zaid-Aboobaker 

     

    Have you tried checking the power automate run history? This tells you the data that is being sent from the canvas app to the flow.

     

    Cheers!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard