Forum Discussion
rbutgins21
Aug 08, 2022Brass Contributor
Can't open EXCEL attachments in a SharePoint List
I have a power automate flow that loads a SharePoint list and creates an attachment that is an xlsx file. I grab the original file from onedrive and rename by putting the customer name in from of th...
AlessioCecchin
Oct 27, 2022Copper Contributor
MZgheib for me it worked when i put the code below for contentbytes in the add attachement to sharepoint element function.
base64ToBinary(items('Auf_alle_anwenden')?['contentBytes'])
hope it works for you too.
Best wishes
Alessio
MZgheib
Nov 07, 2022Copper Contributor
AlessioCecchin thanks for the reply, i don't have content type since i am not using get content from onedrive or sharepoint, instead i am using the manual trigger to upload files and then add these files to sharepoint item as attachments. Anyway eventually i had to change my flow's concept since dealing with attachments is very limited and requires lot of work compared to saving files directly to sharepoint folder.