Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

using camera control to create attachments (working) but also want to be able to manually attach file

(0) ShareShare
ReportReport
Posted on by 148

Hi

 

have a simple app with camera control that saves images via a collection to a sharepoint list.

I want to be able to allow users to also manually attach an image  - so users go to attach file , navigate to image and select.

When doing this i can see the image (unsaved)  in the attachment list along with the camera images, but when i submit form the image (unsaved) doesn't actually save . Is there anyway both camera images and manually attached images can be saved together in same collection list/ saved to sharepoint?

 

thanks

  • Verified answer
    WarrenBelz Profile Picture
    146,660 Most Valuable Professional on at
    Re: using camera control to create attachments (working) but also want to be able to manually attach file

    HI @cheezy ,

    I have a blog on this process that may assist you.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • cheezy Profile Picture
    148 on at
    Re: using camera control to create attachments (working) but also want to be able to manually attach file

    Hi Allen

     

    essentially followed guidance from this video

    https://www.youtube.com/watch?v=iW9dpDntKrY&t=383s

     

    1. collection formula as follows:

    Set (
    varName,
    GUID()
    );
    Collect(
    colImages,
    {
    DisplayName:varName & ".jpg",
    Id:varName & ".jpg",
    Value:Camera.Photo
    }
    );

     

    2. save as attachment

     

    3 and 4 in regards to these questions, the camera image attachments display in the attachments card with default data set to collection colImages - from the image below i have one camera imaged saved and thought i could use the "Attach file" function within the attachment card to add an image from a file (platium icon.png) and add it to the same attachment group as the camera images. 

     

    cheezy_0-1626941344139.png

    thanks 

  • v-albai-msft Profile Picture
    on at
    Re: using camera control to create attachments (working) but also want to be able to manually attach file

    Hi @cheezy ,

    I need to collect some information from you:

    1. What's the formula to create a collection?

    2. Do you save the images into the Attachment column or a multiple-line Text column?

    3. Are you using a Add Picture control to add images manually? Or the Attachment control? What's the formula to save it into collection?

    4. What's your formula to save the images into the SP list? Using the Patch function?

    Please give me more information(better with screenshots) so that I can understand your better.

    Besides, I would suggest you use below control to have a test, since the "Add picture" control can both take upload pictures.

    valbaimsft_0-1626935931339.png

     

    Best regards,

    Allen

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,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard