Posted 18 September 2020, 3:28 am EST
Hi,
Context:
We have a rdlx report which has an image that gets generated through an api call like this:
<Image Name="Image1">
<DataElementName>Image1</DataElementName>
<Height>0.32cm</Height>
<Left>2.04895cm</Left>
<MIMEType>image/bmp</MIMEType>
<Sizing>Fit</Sizing>
<Source>External</Source>
<Value>[b]="http://localhost:5001/api/ReportImage/"[/b] & Fields!Image1Data.Value</Value>
<Width>11.4992cm</Width>
<ZIndex>232</ZIndex>
</Image>
This works fine locally because both the report and the api are on the same solution and running on http://localhost:5001.
Problem:
The problem we are facing is when we deploy the api and use a different url than “http://localhost:5001”. The call will still be made to “http://localhost:5001” which is obviously incorrect.
Is there a way to dynamically set the URL so that we can change it per environment? I.e. One URL for staging and a completely different one for live.
Best Regards,
Ricardo Pereira