web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Send many documents fr...
Power Apps
Unanswered

Send many documents from a Sharepoint Library by email

(0) ShareShare
ReportReport
Posted on by 18
Hi everyone,
 
I have documents in a gallery that are being filtered from a SharePoint library. What I want to do is be able to send those documents by mail but I don't know how. I have tried with this function but it gives me this error. To do that, I create a variable that contains all the files and place it in an attachment box.
 
Set(
    varPrueba;
    ForAll(
        colAttachment;
        {
            ContentBytes: ThisRecord.'Link to item';
Name: ThisRecord.Name
        }
    )
)
 
Office365Outlook.SendEmailV2("abc@abc.pe"; "PRUEBA"; "ABC"; {Attachments: AddColumns(RenameColumns(DataCardValue26_4.Attachments; Value; ContentBytes); '@odata.type'; "")})
 
ERROR: Office365Outlook.SendEmailV2 error: One or more errors occurred. Reporting the first one: The request has not been sent, or the server has not responded. Check your Internet connection.
 
I read that it´s not working because the attachment have to be in Base64, but i don't know how to convert it. Another option I've seen is to use powerautomate but I don't have a clear idea. I would appreciate your help.
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
  • CU13022108-0 Profile Picture
    18 on at
    Thanks @ronaldwalcott but I have my documents on a Sharepoint Library. That blog will help if I was working with a Sharepoint List and have my documents in the attachments column.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard