web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Error when using the "Get an image, file or document (V3)" step in Power Automate

(0) ShareShare
ReportReport
Posted on by 4
I created a custom API in BC to expose a blob field in a prepopulated custom table. The blob field contains a pdf file. I've tested this and it is all correctly populated. Now I am trying to get that blob field through the /Get an image, file or document (V3)/ step in Power Automate. I am getting an error message when I test it. The error message is: /The specified stream URI is not a valid Business Central stream URI/.
 
I am not sure if there is anything else in BC that I need to configure to make it a valid URI. Below is the code view for the Power Automate step:
 
{ /type/: /OpenApiConnection/, /inputs/: { /parameters/: { /bcenvironment/: /TESTNEW2/, /company/: /01d598d5-0d70-ed11-8c34-6045bd794679/, /dataset/: /CS/CS/v2.0/, /blobnavigationpath/: /siRs/pdfReport/ }, /host/: { /apiId/: //providers/Microsoft.PowerApps/apis/shared_dynamicssmbsaas/, /connection/: /shared_dynamicssmbsaas/, /operationId/: /GetBlobFromNavigationV3/ } }, /runAfter/: { /Get_record_(V3)_1/: [ /Succeeded/ ] } }
 
And below is the properties for the API:
    APIGroup = 'CS';
    APIPublisher = 'CS';
    APIVersion = 'v2.0';
    ApplicationArea = All;
    Caption = 'salesInvoiceReportAPI';
    DelayedInsert = true;
    EntityName = 'SIR';
    EntitySetName = 'SIRs';
    PageType = API;
    SourceTable = SalesReport;
I have the same question (1)
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,078 Most Valuable Professional on at
  • Community member Profile Picture
    4 on at
    By the way, I had to create my own API because the standard API salesInvoices/pdfDocument/pdfDocumentContent is not able to generate for posted Sales Invoices. I know it should agreggate both unposted and posted but it is not able to for some reason, it could be a bug, but that's beside the point. Ultimately, I need to know how to roll my own API and get past this error message: The specified stream URI is not a valid Business Central stream URI.
  • FredrikDeGovia Profile Picture
    2 on at
    Hi! 
    I'm currently trying to achive the same as you. Trying to create my own version of PdfDocument api and using it in pa. And I can navigate to the api in "Get an image, file..." action but I cant get the blob out of it. I can on the other hand publish an api with the blob exposed as an BASE64 string, or text in AL lingo, but then i run in to the problem with encoding as an file again. Which i probably can via a compose action. But its not ideal and bit to techie-solution for PA imho. 
     
    Has anyone successfully managed to expose and retrieve a custom blob via "get an image..." action? 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: parsing "/blogs/post/?postid=%27nvOpzp;%20AND%201=1%20OR%20(%3C%27%22%3EiKO))," - Too many )'s.