I have an app which is connected to a flow. The app scans a barcode and returns item informations and picture from Business Central. The flow takes the item-id and uses a HTTP Get-call to retrieve the item picture which is then sent back to the app in the following manner:
1. In Flow i use the call
GET https://api.businesscentral.dynamics.com/v1.0/<Tenant ID>/api/v1.0/companies(<Company ID>)/items(<Item ID>)/picture(<Item ID>)
The returned is stored in a JSON-variable using a "initialize variable"-element. This is then sent back to powerapps using a "respond"-element.
2. In powerapps i have connected the flow to my scan-button. OnScan-property is defined as:
Set( VarItemID; LookUp( colworkflowitems; 'No.' = BarcodeScanner3.Value; Id ) );; Set( VarFlowJSON; Getitempicture.Run(VarItemID) )
The item-id is obtained from a collection created when starting the app. The JSON is loaded into a collection.
3. The image-control is then set to
However, nothing happens. The link parsed to the image control is:
https://api.businesscentral.dynamics.com/v1.0/<Tenant ID>/api/v1.0/companies(<Company ID>)/items(<Item ID>)/picture(<Item ID>)/content
I am unsure if i can use this link at all.
How do i move on from here?
@JMGCORNATOR there maybe something in this thread that can help you out?
@seadude did you get your image working?
Check out new user group experience and if you are a leader please create your group
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.