I want to send an email with attachments as shared from Onedrive. Every attempt failed because the UiPath Outlook send email activity, sends the attachments as copy (not as shared).
I can use VBA to send the attachments as shared as below:
Set OutApp = CreateObject("Outlook.Application")
Set OutlookItem = OutApp.CreateItemFromTemplate(*EmailTemplate*)
OutlookItem.Attachments.Add *FileFullOnlinePath*, 7
OutlookItem.Display
Is it possible to send as shared (code 7 in vba) via Outlook send email activity ?
Needs other activities package ?
You can try getting the link to the file in one drive by using office 365 activities and insert that link instead of attachment. Would this work for you?
Yes you have to give access or you can give access to required users to a folder and place your files in the same folder always, so that they have access to it.
Or if you have required details then you can use office 365 activities to provide /share the file access
I try to avoid this solution (with folder), but maybe this is the best solution.
Also, i have found a work around, i send the email via Excel VBA where i can attach the file as web location and give access to this file automatic (like the first post).