All,
There are a number of other questions similar to this out there and I have read through a couple dozen trying to achieve my goal.
In my app I have a section with generated emails that are sent out requesting quotes from vendors.
I would like to have the BoM attached to the emails as they are sent out.
Each of the BoMs live on our SharePoint site and will always have the same name so the location/file name can be hard coded.
My email form is based on the default email template.
Any assistance would be appreciated.
/*Create semicolon separated list of people to email, send the email, reset subject & message fields*/
Set(
_emailRecipientString,
Concat(
MyPeople,
Mail & ";"
)
);
Office365Outlook.SendEmail(
_emailRecipientString,
vSANIGNetworkEmailSubjectTextEmailSubject_1.Text,
vSANIGNetworkEmailBodyTextEmailMessage_1.Text,
{Importance: "Normal"}
);
Reset(vSANIGNetworkEmailSubjectTextEmailSubject_1);
Reset(vSANIGNetworkEmailBodyTextEmailMessage_1);
Clear(MyPeople)
I understand that I would need to use the following formatting;
Office365.SendEmail(inputTo.Text, inputSubject.Text, inputBody.Text, {Attachments:Table({Name:"file1.jpg", ContentBytes:Camera1.Photo, '@odata.type':""})})
What I don't understand is how do I point to a specific location within SharePoint for the attachment.
I assume it has something to do with {Name:"file1.jpg", ContentBytes:Camera1.Photo, '@odata.type':""} however I have no clue how to make this work.
Thank you in advance.

Report
All responses (
Answers (