
Announcements
Hi everyone!
I am building a PCF in React, a canvas app, that receive a pdf as an input and show it in a personalised view. This pdf is data from a dataverse table.
I have tried a few things but I have no results. In my code the React Component receive an URLas a prop and inside the component I do the fetch and then response.blob. But the problem is that I receive a string like that:
appres://datasources/Cartel%20Versiones/table/xxx_poster_version/rows/375cb2aa-e4d6-ee11-904c-002248a1ea6c/fileimageurl/http:%2F%2Ftemp.url/column/xxx_poster_file/resourceid/395cb2aa-e4d6-ee11-904c-002248a1ea6c
I think that the reason is that in Dataverse , the file url is not available directly and is just saved in azure blob storage. But how it is posible to create a pcf control that receives a file from dataverse column and shows the content?
I really tried whatever it was posible, but i dont find a good example how to procced on that....
Thank you.
File type columns are not straightforward, it is true. But this is because - as you suspected - the data is not actually stored in the table where the column appears. This docs page goes into great detail about how to work with this column type, and this section in particular details how to download the file contents.