# Web request Enum mapping not working as expected

**URL:** <https://community.appfarm.io/t/web-request-enum-mapping-not-working-as-expected/763>\
**Category:** Ask the community\
**Tags:** web-request\
**Created:** [October 11, 2023, 11:55am UTC](https://community.appfarm.io/t/web-request-enum-mapping-not-working-as-expected/763 "2023-10-11T11:55:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Preben](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/preben/32/545_2.png) [@Preben](https://community.appfarm.io/u/Preben)\
**Post date:** [October 11, 2023, 11:55am UTC](https://community.appfarm.io/t/web-request-enum-mapping-not-working-as-expected/763/1 "2023-10-11T11:55:04Z")

</div>

Hi,

I have a web request that provides an enum value in a string (e.g. Submitted). When I have added this to the property mapping I expected that the “Submitted” value in the web request would map to the Enum String value “Submitted”. But this is not happening.

Any suggestions?

![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/4fec942a5b16e875b1842673903e34786a33afcd.png)  
Enum:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/542cc2fb2857a96df02ed9325f675d0f2cc117ca.png)

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [October 11, 2023, 1:10pm UTC](https://community.appfarm.io/t/web-request-enum-mapping-not-working-as-expected/763/2 "2023-10-11T13:10:10Z")

</div>

Hello!

It seems like this is not a general bug, as it works when setting up a similar testcase.

Example test case:

1. using webhook.site to return the following:

```auto
{
"value": "Test"
}

```

1. An enum defined in Appfarm as follows:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/3195a05575566bb4bfeaefdedcb2c0c7fc26219d.png)

2. A datasource with a property of data type “My test enum”

3. A web request as follows:  

Can you maybe try to add a runtime property (string) to the datasource of the result mapping, and map the TurnoverStatus to that property as well, to verify that “Submitted” is mapped? Or/and maybe a screenshot of your web request if it still doesn’t work?

---

<div class="post-metadata">

**Author:** ![Preben](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/preben/32/545_2.png) [@Preben](https://community.appfarm.io/u/Preben)\
**Post date:** [October 11, 2023, 8:53pm UTC](https://community.appfarm.io/t/web-request-enum-mapping-not-working-as-expected/763/3 "2023-10-11T20:53:06Z")

</div>

Thanks for the quick response. Found the user error, the new status field was not selected in the get request 🙃
