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 / PowerApps Attachment f...
Power Apps
Answered

PowerApps Attachment file names to Sharepoint

(0) ShareShare
ReportReport
Posted on by 2

Hi. I am using the attachment column from a Sharepoint list into my PowerApp. When testing the app, I take/add multiple photos to the attachment section. However, when I do this every photo is named "image" and when I submit the form, the Sharepoint list will only show me one out of three that I uploaded because all three have the same name. How can I get my live photo upload file names to build off each other? For instance, "image" "image1" "image2" etc... I would prefer if the user does not have to manually do this, if I could code something somewhere to where it can name the different photos based on upload time that would be great. Thanks! 

Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    HI @kbailey ,

    Attachments controls uploads should use the current file name of the item selected. How are you uploading them?

  • kbailey Profile Picture
    2 on at

    I am taking a photo and clicking "use photo" and if I take multiple photos it labels my uploads all under the name "image"

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    @kbailey ,

    Is this on a mobile device ? If so I am not aware of any solution as the naming is in the control of the device.

     

    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.

    Visit my blog Practical Power Apps

  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @kbailey ,

     

    Do you want to add multiple photos taken from your phone via Flow to the Attachments column in SharePoint List? I have made a test for your reference.

     

    1. Here is my Flow.

    vyujincuimsft_0-1651632856578.png

    2. Add a Camera Control to the Form and apply the following formula on its OnSelect property as:

    Collect(colimages,{PhotoName:Text(Now(),LongDateTime)&".jpg",PhotoValue:Substitute(Last(Split(JSON(Camera1.Photo,JSONFormat.IncludeBinaryData),"base64,")).Result,"""","")});

    3. Select the Form and apply the following formula on its OnSuccess property as:

    Set(itemid,Form2.LastSubmit.ID);
    ForAll(colimages,CameratoSP.Run(itemid,PhotoName,PhotoValue))

    vyujincuimsft_1-1651633626472.png

    Result Screenshot:

    vyujincuimsft_2-1651633811773.png

    vyujincuimsft_3-1651633829176.png

     

     

    Best Regards,
    Charlie Choi

  • julienvdc Profile Picture
    210 on at

    Hey does PowerApp generate an ID everytime it is running a PowerAutomate flow? And would it be possible to number each attachment (when added in bulk)? 

    I am thinking that then you could concatenate the "Run ID" and attachment number to make it unique?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard