cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rbie
Frequent Visitor

sending collection as attachment without automate

Hi,

 

I have a small apps that send a collection as a list in the body via outlook, like

ClearCollect(myCSV;{csvString:"AssetID"&Char(10)});;
ForAll(
ScannedAssets;
Patch(
myCSV;
First(myCSV);
{csvString: First(myCSV).csvString&AssetID&Char(10)})
);;

Set(myList;First(myCSV).csvString);;

 

Office365Outlook.SendEmail("myEmail@MyCompany.com"; "AssetList"; myList)

This works.

I was just wondering if it possible to send this as an attachment, so they don't have to cut and paste this into a text file ?

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Rbie ,

Not easily as you need to turn it in to file rather than a bunch of Text. This may be possible with the process in this video from Shane Young, but you need a Premium connector (and therefore licence) to do it. It is however very easy using Power Automate - just create a file in OneDrive with the content and email it.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @Rbie ,

Not easily as you need to turn it in to file rather than a bunch of Text. This may be possible with the process in this video from Shane Young, but you need a Premium connector (and therefore licence) to do it. It is however very easy using Power Automate - just create a file in OneDrive with the content and email it.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

Rbie
Frequent Visitor

Hi Warren,

Thanks for the reply, the solution in the video doesn't really work for me as I don't want the user to choose a file.

I'll just stay with the solution I have atm.
I was just curious if it could be done.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,427)