cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hemasai1999
Helper III
Helper III

How to validate attachment file name with name present in sharepoint list

Hi Team,
I need to do one validation , where

Hemasai1999_0-1647017590912.png

attachement uploaded in this attachment box should validate artifact id column in my sharepoint list

Hemasai1999_1-1647017696650.png

and users will upload attachment in this format(artf012345_TrainingProgram). I need to seperate (artf012345) this part from file name and need to validate with artifact id column in sharepoint list
Any suggestion would be helpful
Thanks in Advance

 

1 REPLY 1
BrianPadgett
Regular Visitor

I have an app where I validate if an attachment has been added or removed.  Use the following to create a collection of attachment names.

ClearCollect(colArtifactAttachmentTbl,DataCardValueNN.Attachments.Name)

 

Then you can compare to your SharePoint list.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,985)