Skip to content

Handle metadata_url separately  #40

@attieretief

Description

@attieretief

Using this library to consume Microsoft Dynamics 365 Business Central (formerly Microsoft Dynamics NAV) ODataV4 web services, I had to find a way to not be limited to the default service company of the endpoint.

Normally, to specify a company within the source database to connect to, the url would be in the form of <endpoint>/Company('CompanyName')/EntitySet

But providing this as url to the ODataService class does not accept $metadata

The solution is to pass <endpoint>/Company('CompanyName')/ as url to ODataService and pass <endpoint>/ as new metadata_url parameter to ODataService

image

And then additionaly, in the Metadata class, use the metadata_url instead of url

image

Happy to contribute the code changes if required

LOVE this library

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions