Forum Discussion
Leonel GUZMAN
Jan 30, 2022Brass Contributor
Reference "File" from "For a selected Item" in SharePoint
Hello I got a SharePoint list (List A) where I run a "For a selected Item" event that collects text and a file (attachment) that I then use to populate a different list (List B). I can use th...
atifhafeez
Jan 15, 2023Copper Contributor
To refer filename, use the following expression - triggerBody()?['file']?['name']
To refer filecontent, use the following expression - base64ToBinary(triggerBody()?['file']?['contentBytes'])
JPG Images are normally stored in binary format. Power automate returns the image data in base64 format. You are expected to convert the base64 file content to binary.
Hope this helps
To refer filecontent, use the following expression - base64ToBinary(triggerBody()?['file']?['contentBytes'])
JPG Images are normally stored in binary format. Power automate returns the image data in base64 format. You are expected to convert the base64 file content to binary.
Hope this helps