SharePoint PowerAutomate Create plain CSV file from email - sharepoint

I have a simple two stage flow (below) that I am using. It triggers on a email with a file attachment (which is in CSV format) and then saves it to a SharePoint Document folder. All works well except that it is also putting the mime headers at the top of the CSV file. How can I stop it from doing that. See screen shot of output and of flow: ( For File Content I am using Attachments Content)

YSG,
Can you add a condition to check if the attachment is actually a .csv file? At the moment it looks like it is concatenating a couple of attachments into one file.
Try a setup like below:
The Condition action checks if the Attachment Name property ends with .csv

Related

saving mail attachment with PowerAutomate to sharepoint corrupts the file

I am trying to build a flow based on the PowerAutomate template
Create Planner task and add attachments to SharePoint on new email
arrival
This template works fine, in that it saves all the mail attachments to my sharepoint. But it only shows the link to the last attachment in the task.
I have worked around it, by adding a string variable and appending all the sharepoint paths to this variable.
With my Flow, everything runs smoothly. But the stored files are about 10%- 20% bigger in size than the original and they turn out to be corrupted.
The only difference I can spot in the saving of the file is as follows:
Template section has "get attachment" and the according "body('get attachment'):
While my in my version I can only select "get attachment (V2)" and the corresponding "body('get attachment (V2)')
There is an option with V2 that allows or disallows chunking, but there is no effect on my filesize.
The other difference is, that I have my flow create a different folder based on the task ID, since there where errors, if the same name attachment came a second time. But I have tried my flow without the added folders and there is no difference in file size.
The original files:
and the corrupted files:
It makes no difference if I use the sharepoint link provided through the flow to my new planner task, or if I open the files directly within sharepoint. The result is an error.
Can anyone guess, why my flow seems to store something more within the file and thus corrupting it? I can provide the other parts of the flow in more detail too. Here is the overview of my custom flow:
I actually found the answer after rewriting it from scratch:
Using the old template had me looking for the wrong information when adding the attachment content to sharepoint. I had always searched for "body" which was used in the template and gave me this
But searching for attachment the dynamic content actually showed me the right pieces. I am not sure, if I missed it before, or if recoding a template hid them somehow. With the rewrite from scratch I found this:
So, to make a long story short: Use "Content Bytes" of the "Get_Attachment_(V2)" Method and everything works fine.

How can will I save the attachments from Email using Mapiex in BluePrism?

I am creating an RPA in BluePrism in which bot has to download an attachment(Excel file) from outlook email. I am using Mapiex
How to save the attachments from E-Mail using Mapiex in BluePrism?
In the action to read email, you have a parameter named 'Attachment Directory':
All the email attachments will be there after Get Mail gets executed. Sometimes though, you may have extra files, usually images from the email, maybe signatures and such. So, you can use the action Get Files from the default object Utility - File Management and use a filter for .xlsx and .xls files to get the path and names of the files you need:

NetSuite: Can I expose a pdf of an invoice in a saved search for download?

I need to expose the pdf version of a NetSuite invoice in my ecommerce site. I'm using saved searches to push up invoice header info but I want to be able to click a link and it will download the NetSuite invoice pdf.
The link to the PDF of an Invoice record looks like this:
/app/accounting/print/hotprint.nl?regular=T&sethotprinter=T&formnumber=102&id=3253&label=Invoice&printtype=transaction&trantype=custinvc
You can use a formula column in your search that dynamically fills in the correct parameters and generates an appropriate <a> tag.
You need to mark the PDF files in the File Cabinet to be "Available Without Login", this should provide you with an External URL you can use to download.
Here is what you can do : taking in consideration that you want the file to be accessible without netsuite login:
To access a file without login, it must be in file cabinet and with "Available without login" checked but when you click on Print in netsuite, this doesn't save the generated file in the file cabinet, so here is what you can do:
Add a custom transaction body field of type free-text or url.
Create a userevent script that trigger on aftersubmit (I'm here giving a general idea, so you can set it otherwise if you want).
Using the "render" (suitescript 2.0) : you can generate the PDF of your Invoice, save the file in the file cabinet with "Available without login" checked.
After saving the file, reload it and get its external url and save it in the custom field created in (1).
Updated your Saved Search to add the new field as a result column
Good luck :)

How to attach pdf embedded in excel in outlook email with vba

I have created an embedded pdf with the insert> object > create from file> browse > display as icon function in excel.
I would like to then use the embedded pdf as an attachment for my outlook email using vba code. I have tried to use the .Attachment.Add code but it seems to fail to detech an embedded object.
Could anyone advise a correct code? Thanks!
Get the file from the source?
I don't understand why you would need to embed the.PDF object in the workbook, if you're going to be emailing it separately anyhow...
Regardless, you could just grab the actual/original .PDF to attach a copy to the email, directly from the same location from where it was embedded. (If it's not there, what happened to it?)
Another option:
As soon as you right-click the embedded object, Excel 2016 "gets ready" for you to open it by extracting it to your local temp folder. (I'm unsure whether this applies to previous versions.)
Therefore, you could programmatically right-click the embedded icon, and then check the temp folder located at the path that you'll find stored in Environ("temp"). One or more copies of your file will be located there (and it should be the 'newest' PDF).
Yet another option:
Excel's XLSM file is simply a compressed ZIP file, if you change the extension. You could programmatically make a copy of the file, changing it's extension to .ZIP.
Embedded object are stored as .BIN files within the ZIP file in the xl\embeddings\ folder. It would have to be extracted and then renamed back to a PDF. Note that this method is a little flakey and won't work with all PDF's.
More Information:
VBA Express : Save embedded PDF file as a separate PDf file
How-to-Geek : How to Extract Images, Text, and Embedded Files from Office Documents

Lotus notes will not launch with xls, xlsx, doc or docx attachments.

I have a ruby application that allows me to select documents for emailing. The app creates a batch file and downloads it. Clicking on the .bat file launches a notes email window with the attachments populated. When I try this it works fine for PDF, Jpg, and POTX files . However, doc, docx xls and xls give me an error of 'file does not exist'.
the string I am passing via a bat file looks like
"C:\Program Files (x86)\IBM\Lotus\Notes\notes.exe"
"Mailto:?Attach=\wwwroot\apps\technical_library\public\images\18\Presentation_template.potx?Attach=\wwwroot\apps\technical_library\public\images\31\FAX.doc?Attach=\wwwroot\apps\technical_library\public\images\32\FAX.docx"
If I try to send a bunch of images and pdfs, it creates the email with no problem.
I'm assuming that lotus is blocking the attachments because of 'active content'. How do I get lotus to accept the command line string with doc/xls attachments. ?

Resources