SharePoint List columns of type ‘Image’ or ‘Thumbnail’ are not readily available in Power Automate’s in built SharePoint Connector. The way is to utilize the content we have from the list item and then add a few additional actions to pull the image from SharePoint itself via its API.
The Get items action will not return reference to the image, we need to use an additional action to do that. Here, the name of my column is Image
The above action will return JSON data, which can be parsed by creating the schema from the output of the action above. The field we are interested is Image.
The Image field too returns a JSON which looks something like this
So we use another Parse JSON action to extract the serverRelativeUrl and then append it to the Tenant url variable to form the Absolute url to the image.
We need the Absolute Url to get the binary contents of the image file. This can be done using the Get file content using path action
Once we obtain the Binary data, we create the Image HTML tag as shown below. The expression been used is:
Finally, we create an HTML file and then subsequently a PDF.