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 Apps / Send gallery to JSON i...
Power Apps
Unanswered

Send gallery to JSON issues

(0) ShareShare
ReportReport
Posted on by

Hi

 

I’m trying to send a filtered gallery via JSON to us in a word template using flow. I’ve managed to get the basics working but for some reason I can only see three of my columns in the JSON output? I am taking these outputs and mapping them to a repeating table in Word using the SELECT operation to map them but I can’t see all columns from the filtered gallery?

Categories:
I have the same question (0)
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @jed76, could you check if the following parameters resolve the error and do not remove any fields you require:

     

    JSON(
     Gallery,
     IgnoreUnsupportedTypes & IgnoreBinaryData
     )


    I hope this helps! 

  • jed76 Profile Picture
    on at

    Thanks. This is kind of what I am already doing but the gallery has some filtering applied. Would it be better to add the gallery to a collection first and perhaps use show columns before using JSON?

     

    Do you also know if it is possible to send the data to an excel file instead of a repeating word table? I need to apply conditional formatting to the data as well based on certain criteria and can’t think of a way to do this in a repeating word table?

  • LaurensM Profile Picture
    12,516 Moderator on at

    @jed76 , Ok the JSON() might be leaving out these fields due to the given parameters.

    In my test case, the dropdown / choice fields were not in the JSON body.

     

    The method you proposed would be the preferred way in my opinion. I tested this with the code below and my choice fields were in the JSON this time:

     

    ClearCollect(
     colGallery,
     ShowColumns(
     Gallery1.AllItems,
     "ChoiceFieldName",
     "TitleFieldName"
     )
    );
    ClearCollect(
     colJSON,
     JSON(colGallery)
    )

     

    (The ClearCollect of the colJSON was solely for testing and seeing the results)

  • jed76 Profile Picture
    on at

    Great - I’ll give this a try. So after the collection you’d just use JSON(colGallery)? Or do you need to add ignorebinary data etc?

  • LaurensM Profile Picture
    12,516 Moderator on at

    @jed76 in my test case the JSON(colGallery) worked fine without the additional parameters.
    However, this might differ in your specific case.

    For your information:

    IgnoreUnsupportedTypes is used to ignore (and leave out) unsupported types such as controls and record references. (controls will have been the issue when referencing the gallery without ShowColumns())
    IgnoreBinaryData is used to ignore audio/video clip and image columns.
    IncludeBinaryData is used to add image or media references to the JSON.

     

  • jed76 Profile Picture
    on at

    Many thanks - I’ll give it a try in a bit and let you know!

  • jed76 Profile Picture
    on at

    Getting there - the collection seemed to work much better although I still had to use ignoreunsupportedformats. 

    Many thanks!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard