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

**URL:** <https://connective.celigo.com/t/cannot-get-field-odata-etag-on-a-response-map-after-inserting-record-via-api-business-central/374>\
**Category:** Integrator.io\
**Tags:** microsoft-dynamics-365-business-central, javascript\
**Created:** [August 18, 2023, 5:41pm UTC](https://connective.celigo.com/t/cannot-get-field-odata-etag-on-a-response-map-after-inserting-record-via-api-business-central/374 "2023-08-18T17:41:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marceloborges](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/marceloborges/32/9594_2.png) [@marceloborges](https://connective.celigo.com/u/marceloborges)\
**Post date:** [August 18, 2023, 5:41pm UTC](https://connective.celigo.com/t/cannot-get-field-odata-etag-on-a-response-map-after-inserting-record-via-api-business-central/374/1 "2023-08-18T17:41:49Z")

</div>

Hello everyone,

I'm inserting a record in Business Central using a POST method, and as a result, Business Central returns the record that was created. Inside the response, I need to keep 3 fields for the next steps of my flow.

The screenshot below shows my \_json response with a lot of fields including "id", "lineNumber" and "@odata.etag".

On the mapping rules, I am mapping the 3 of them.

On the output you can see that Id and LineNumber is being fetched correctly. However, for some reason, the @odata.etag is not being fetched. I don't know if Celigo is getting a little lost given that the name of the parameter has an @ sign, or maybe it's the (.) period sign that is throwing it off, but I'm not sure how to proceed.

I've also tried mapping \_json["@odata.etag"] , which would be another valid JavaScript notation to get the value of an object attribute, but it also didn't work.

How can I fetch the contents of @odata.etag in this context?

Any help is appreciated, thanks in advance.

 ![5301043caa20740200000001-fb58eb814db0403eb50b2b914db10614.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/9/9dc0802c371593196281426667b976755e5306fa.png)

---

<div class="post-metadata">

**Author:** ![steveklett](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@steveklett](https://connective.celigo.com/u/steveklett)\
**Post date:** [August 18, 2023, 5:51pm UTC](https://connective.celigo.com/t/cannot-get-field-odata-etag-on-a-response-map-after-inserting-record-via-api-business-central/374/2 "2023-08-18T17:51:33Z")

</div>

```
_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.

---

<div class="post-metadata">

**Author:** ![marceloborges](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/marceloborges/32/9594_2.png) [@marceloborges](https://connective.celigo.com/u/marceloborges)\
**Post date:** [August 18, 2023, 6:14pm UTC](https://connective.celigo.com/t/cannot-get-field-odata-etag-on-a-response-map-after-inserting-record-via-api-business-central/374/3 "2023-08-18T18:14:36Z")

</div>

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

\_json[@odata.etag]

did the trick

---

<div class="post-metadata">

**Author:** ![steveklett](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@steveklett](https://connective.celigo.com/u/steveklett)\
**Post date:** [August 18, 2023, 6:16pm UTC](https://connective.celigo.com/t/cannot-get-field-odata-etag-on-a-response-map-after-inserting-record-via-api-business-central/374/4 "2023-08-18T18:16:49Z")

</div>

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

Glad you figured it out.
