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 / Saving image from came...
Power Apps
Unanswered

Saving image from camera to jpg and saving the link in the item im currently working on

(0) ShareShare
ReportReport
Posted on by

Hi Guys,

 

Ive got an app that a user goes to a Camerascreen and takes as many images as they would like (I have a flow that changes the images to jpg and uploads them to a document folder on sharepoint) and then when they are done they return back to another screen and finish the list.

 

However my issue is the images are seperated from the list item with no way to say those images belong to that list item. Can i somehow attach the images in a hyperlink to that sharepoint item once i submit the form? 

 

Has anyone done this before? 

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

    Hi @Anonymous ,

    How do you collect these captured images within your app? Using Collection?

    Do you pass a collection of images from your app to your flow?

    Why not fire your flow when you submit the form data to your SP List in your app?

     

    Based on the needs that you mentioned, I think you want to attach the captured multiple images into single one item (submitted from your app) in your SP List, is it true?

     

    The user @Ajilakes has faced similar issue with you, please check my response within the following thread:

    https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Capture-Image-and-Save-as-Attachment/m-p/360815#M103106

    On your side, you should pass a collection of images from your app to your flow via the JSON(ImageDataCollection, JSONFormat.IncludeBinaryData) formula. Then within your flow, you should convert the JSON string value into a JSON Table using json function, then add a "Apply to each" action, set the Input box to the converted JSON Table (may be a json expression, e.g. json(outputs('Compose')) ). Within the "Apply to each" action, add a "Add attachment" action to add image data from the JSON table into the submitted record iteratively (in a loop).

     

    Please take a try with above solution I provided, check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on at

    @v-xida-msft wrote:

    Hi @Anonymous ,

    How do you collect these captured images within your app? Using Collection?

    Do you pass a collection of images from your app to your flow?

    Why not fire your flow when you submit the form data to your SP List in your app?

     

    Based on the needs that you mentioned, I think you want to attach the captured multiple images into single one item (submitted from your app) in your SP List, is it true?

     

    The user @Ajilakes has faced similar issue with you, please check my response within the following thread:

    https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Capture-Image-and-Save-as-Attachment/m-p/360815#M103106

    On your side, you should pass a collection of images from your app to your flow via the JSON(ImageDataCollection, JSONFormat.IncludeBinaryData) formula. Then within your flow, you should convert the JSON string value into a JSON Table using json function, then add a "Apply to each" action, set the Input box to the converted JSON Table (may be a json expression, e.g. json(outputs('Compose')) ). Within the "Apply to each" action, add a "Add attachment" action to add image data from the JSON table into the submitted record iteratively (in a loop).

     

    Please take a try with above solution I provided, check if the issue is solved.

     

    Best regards,


    Is this much different of from this? This is what i have been working on

    fasfasf.png

    However i cant currently get more than one link in the field once i patch this into a html column (badly trying to make it a hyperlink)

     

     

     

  • v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    Based on the flow configuration that you provided, I think the solution I mentioned above is different from yours. Have you taken a try with the solution I provided above?

    Do you pass a collection of images data from your app to your flow?

     

    According to your flow's configuration, I assume that you want to create related image (.jpg) file within your SP Library based on the created SP List item, is it true? But within my solution, I recommend that you should attach multiple images files (pass from app) as attachments of the submitted SP List item.

     

    Based on the needs that you mentioned, I think it is not necessary to store the image file into a SP Library, instead, you could consider attach the passed image files as attachments of the submitted SP List Item record.

     

    I think the solution I provided above could achieve your needs, please consider take a try with it, then check if it is helpful in your scenario.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on at

    @v-xida-msft wrote:

    Hi @Anonymous ,

    How do you collect these captured images within your app? Using Collection?

    Do you pass a collection of images from your app to your flow?

    Why not fire your flow when you submit the form data to your SP List in your app?

     

    Based on the needs that you mentioned, I think you want to attach the captured multiple images into single one item (submitted from your app) in your SP List, is it true?

     

    The user @Ajilakes has faced similar issue with you, please check my response within the following thread:

    https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Capture-Image-and-Save-as-Attachment/m-p/360815#M103106

    On your side, you should pass a collection of images from your app to your flow via the JSON(ImageDataCollection, JSONFormat.IncludeBinaryData) formula. Then within your flow, you should convert the JSON string value into a JSON Table using json function, then add a "Apply to each" action, set the Input box to the converted JSON Table (may be a json expression, e.g. json(outputs('Compose')) ). Within the "Apply to each" action, add a "Add attachment" action to add image data from the JSON table into the submitted record iteratively (in a loop).

     

    Please take a try with above solution I provided, check if the issue is solved.

     

    Best regards,


    A couple of things im stuck on one is on the add attachment part of the flow, 

    the file input and file name, i cannot read the code to figure that part out and is this solution for just one image or several?

  • Community Power Platform Member Profile Picture
    on at

    @v-xida-msft wrote:

    Hi @Anonymous ,

    Based on the flow configuration that you provided, I think the solution I mentioned above is different from yours. Have you taken a try with the solution I provided above?

    Do you pass a collection of images data from your app to your flow?

     

    According to your flow's configuration, I assume that you want to create related image (.jpg) file within your SP Library based on the created SP List item, is it true? But within my solution, I recommend that you should attach multiple images files (pass from app) as attachments of the submitted SP List item.

     

    Based on the needs that you mentioned, I think it is not necessary to store the image file into a SP Library, instead, you could consider attach the passed image files as attachments of the submitted SP List Item record.

     

    I think the solution I provided above could achieve your needs, please consider take a try with it, then check if it is helpful in your scenario.

     

    Best regards,


    Could you break down this step by step? 

     

    Im lost,

     

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard