Skip to content

MS Dynamics NAV: Updating data #77

Description

@KDGundermann

When updating an object in MS Dynamics NAV you will receive an error message:

    HTTP/1.1 400 Bad request
    <m:message xml:lang="en-US">
        An error occurred while processing this request.
    </m:message>

ruby_odata inserts an __metadata attribute in the class:

    # Fill metadata 
    meta_id = entry.xpath("./atom:id", @ds_namespaces)[0].content 
    klass.send :__metadata=, { :uri => meta_id } 

When updating the object, this __metadata will be included in the JSON document, but the NAV server does not accept this unknown value.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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