cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
veeresh
Level: Powered On

Take Image, rename and upload to Sharepoint List

The 'Attachments' function works well and allows the PowerApp to capture photos or select from gallery for upload to Sharepoint list.

 

However, can the image file names be renamed before uploading?

1 ACCEPTED SOLUTION

Accepted Solutions
KickingApps
Level 8

Re: Take Image, rename and upload to Sharepoint List

@veeresh  I have three input fields in my app that are might look similar to 52, 0027, 23.4.  When a user takes images, I wanted to name the images using these 3 inputs as the prefix so I created a (hidden)label that concatenates the inputs resulting in 52_0027_23.4.  When an image is saved, it is added to a collection where I join the text from the hidden label + 1.jpg.

 

My button formula is set to (simplified):

Collect(
     colPhotoList,
          {
               Photo: imgPhotos.Image,
               Filename: Concatenate(
                      photoName.Text, Text(CountRows(PhotoList) + 1),
                      ".jpg" )
          
          }
)

Again, I have simplified the formula in this example but I hope this example will help you get started.  

1 REPLY 1
KickingApps
Level 8

Re: Take Image, rename and upload to Sharepoint List

@veeresh  I have three input fields in my app that are might look similar to 52, 0027, 23.4.  When a user takes images, I wanted to name the images using these 3 inputs as the prefix so I created a (hidden)label that concatenates the inputs resulting in 52_0027_23.4.  When an image is saved, it is added to a collection where I join the text from the hidden label + 1.jpg.

 

My button formula is set to (simplified):

Collect(
     colPhotoList,
          {
               Photo: imgPhotos.Image,
               Filename: Concatenate(
                      photoName.Text, Text(CountRows(PhotoList) + 1),
                      ".jpg" )
          
          }
)

Again, I have simplified the formula in this example but I hope this example will help you get started.  

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 185 members 4,821 guests
Please welcome our newest community members: