# Slot\_mapping for rasa12

**URL:** <https://forum.rasa.com/t/slot-mapping-for-rasa12/2958>\
**Category:** Rasa Open Source\
**Created:** [November 26, 2018, 12:42pm UTC](https://forum.rasa.com/t/slot-mapping-for-rasa12/2958 "2018-11-26T12:42:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![neerajb1](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@neerajb1](https://forum.rasa.com/u/neerajb1)\
**Post date:** [November 26, 2018, 12:42pm UTC](https://forum.rasa.com/t/slot-mapping-for-rasa12/2958/1 "2018-11-26T12:42:34Z")

</div>

Hi all ,

I am looking example of slot mapping and DB validation in new core. Anyone already worked with it please let me know. I tried o define slot\_mapping but it’s not mapping it . May be i am missing something

def slot\_mappings(self):

```
    return {"Customer_ID": [self.from_entity(entity="number", intent="inform"),
                            self.from_entity(entity="number", intent="Customer_ID"),
                            self.from_entity(entity="Customer_ID", intent="Customer_ID") ] ,
      
                }
```

---

<div class="post-metadata">

**Author:** ![MetcalfeTom](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/metcalfetom/32/1422_2.png) [@MetcalfeTom](https://forum.rasa.com/u/MetcalfeTom)\
**Post date:** [December 2, 2018, 8:39pm UTC](https://forum.rasa.com/t/slot-mapping-for-rasa12/2958/2 "2018-12-02T20:39:37Z")

</div>

Hi @neerajb1,

I see a trailing comma in your code which might be messing things up, try:

```auto
    return {"Customer_ID": [self.from_entity(entity="number", intent="inform"),
                            self.from_entity(entity="number", intent="Customer_ID"),
                            self.from_entity(entity="Customer_ID", intent="Customer_ID")]}

```

As always, ping me if that hasn’t solved it

---

<div class="post-metadata">

**Author:** ![twittmin](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/twittmin/32/2091_2.png) [@twittmin](https://forum.rasa.com/u/twittmin)\
**Post date:** [June 27, 2019, 4:36am UTC](https://forum.rasa.com/t/slot-mapping-for-rasa12/2958/3 "2019-06-27T04:36:55Z")

</div>

@neerajb1 Do you define this mapping in form action or other any action? Do you need to include the slot in the story? I only include it in the domain file, but it can’t find the slot values.
