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 Apps / Images and text inputs...
Power Apps
Unanswered

Images and text inputs in gallery to JSON format

(0) ShareShare
ReportReport
Posted on by 4

Hi Everyone.

 

I tried to find a solution, but I couldn't find a way. Please advise if you have any ideas.

Building a canvas app which have gallery for images and text inputs. And then press a button, all items of images and text inputs in gallery to be stored in JSON format and send to automate to store in sharepoint list. (images to attachment and text input to column in list)

 

For Image, I could change to JSON format and stored in sharepoint list as attachment correctly. 
But for text input, I cound NOT change to JSON format. When I saw JSON format, "comment" is 'null' even I filled in textinput.

gosuzu_1-1681689316910.png

 

Try to change to JSON format from image and text input

gosuzu_2-1681689434862.png


Images are changed correctly, but text input (comment) are 'null'

varJSON

gosuzu_4-1681689602964.png

 

 

 

I would be happy if anyone support for this.

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

    Hi @gosuzu ,

     

    Thanks for your detailed description. Your process seems all right and I can get proper result based on your steps...

    Would you like to check your collection to ensure the comment shows up there?

    vwenjuanmsft_0-1681708957990.png

     

     

    vwenjuanmsft_1-1681709000354.png

     

    Community Support Team _ Wenjuan Zou

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

     

     

  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    @gosuzu 

    The first argument in your call to ForAll should be photogallery.AllItems.

    In your formula, you're passing photogallery.AllItems.Image5 which is not correct.

    ForAll(photogallery.AllItems, 
     Collect(MycolPhotoJSON,
     {Url: ThisRecord.Image5.Image,
     comment:TextInput2.Text}
     )
    )

     

  • gosuzu Profile Picture
    4 on at

    thank you everyone. I solved it.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard