Hello,
I was wondering if we can delete files
When we have data in the collection
I like to delete the record and also the image at the same time?
I use this code to remove them from the sharepoint list
If( CountRows(temp)>0,
ForAll(temp,
Remove(MyDataList,LookUp(temp, ID = ThisRecord.ID)));
If(
// check if there were any errors when the test score was submitted
!IsEmpty(Errors(AuctionData)),
// if true, show any error message
Notify(
Concat(Errors(MyDataList), Column&": "&Message),
NotificationType.Error
),
// else, go to success screen
//Navigate('Success Screen');
ForAll(temp,
Remove(colAllData,LookUp(temp, ID = ThisRecord.ID)));
If(
// check if there were any errors when the test score was submitted
!IsEmpty(Errors(colAllData)),
// if true, show any error message
Notify(
Concat(Errors(colAllData), Column&": "&Message),
NotificationType.Error
),
Notify("Success",
NotificationType.Success);
Clear(temp);
Back()
)))
In the same MyDataList we have a column named URL
So that's where the image location of the folder has been added
How can i delete the image at the same time when using the above code?
The URL looks like this:
https://my.sharepoint.com/sites/folder/Shared%20documents/1.folder/06.folder/1.PHOTOS/201/bn-0008.jpg
The URL 1.PHOTOS/ this part location/.JPG change all the time depend where the image has been located
Thank you