Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Consolidate OData data source authentication within Data Gateway

Hi all,   I've recently set up a number of dataflows for a client which use Odata feeds from Dynamics NAV. The model pulls data for around 15 companies in their Dynamics setup, and a feed for both ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    As tends to the be the case whenever I post a query up here, I've managed to solve it myself a matter of minutes later!

     

    Unfortunately this solution requires me to go through and amend all the dataflows, but it'll be worth it in the long-run. 

     

    When you set up an OData feed to Dynamics, you're best using the base URI first. So where I had previously entered http://servername:8048/NAV2017/OData/Company('companyname1')/BI_GeneralLedgerEntries, I simply enter http://servername:8048/NAV2017/OData/.

     

    You can then use a couple navigation steps to filter down to 'Company' and then the specific OData feed. Setting it up this way means the credentials are stored purely at the base URI level, and so only one 'Data Source' will show under 'Manage Gateways' (in my case it uses the one I tried to set up previously).

     

    Navigation Step 1 - Select CompanyNagivation Step 2 - Select the data feed (the rows show the various different companies)