Cannot get field '@odata.etag' on a Response Map after inserting record via API (Business Central)

Comments

3 comments

  • Steve Klett Strategic Partner
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Top Contributor
    Awesome Follow-up
    Engaged
    _json["@odata.etag"]

    would be the way to do it. I see you tried that and it didn't work, I'd suspect a bug possibly.

    0
  • Marcelo Borges

    Apparently the correct way is to not use double quotes to enclose the field name:

    _json[@odata.etag] 

    did the trick

     

    0
  • Steve Klett Strategic Partner
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Top Contributor
    Awesome Follow-up
    Engaged

    One day I'll remember that mapper syntax is NOT JavaScript syntax! :)

    Glad you figured it out.

    1

Please sign in to leave a comment.