# Smart action not available after pushing the code to production

**URL:** https://community.forestadmin.com/t/smart-action-not-available-after-pushing-the-code-to-production/5302
**Category:** Help me!
**Tags:** howtos, setup
**Created:** [September 26, 2022, 10:01am UTC](https://community.forestadmin.com/t/smart-action-not-available-after-pushing-the-code-to-production/5302 "2022-09-26T10:01:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jacques\_liao](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/jacques_liao/32/3723_2.png) [@jacques\_liao](https://community.forestadmin.com/u/jacques_liao)
#### Post date: [September 26, 2022, 10:01am UTC](https://community.forestadmin.com/t/smart-action-not-available-after-pushing-the-code-to-production/5302/1 "2022-09-26T10:01:50Z")

</div>

Hello 👋,

## Feature(s) impacted

The smart actions

## Observed behavior

I have created a functional smart action that works well well local environment

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/7/71dbebc16fa2e0be9b6918bace0b259242612110.png)

After pushing on the develop environment, I try to see on the develop environment what smart actions I have in my actions and I have it right

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/c/cc0ed0c092d7acfa91c5ef47a430b75d112c4f15.png)

but strangely it is grayed out 😕

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/e/e0c3f2744f58bedb877f7da96de3ac979e66cda6.png)

I then tried to see in my local environment if it still worked, but it is also grayed out 😕

## Expected behavior

The smart action should work on the local and develop environment, but it is not the case

## Context

- Project name: Nostrum Care v2
- Team name: Operation
- Environment name: Develop
- Agent type & version: “forest-express-sequelize”: “^8.0.0”

Would you have an idea ?🙏  
Thank you in advance.

---

<div class="post-metadata">

### Author: ![morganperre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/morganperre/32/1296_2.png) [@morganperre](https://community.forestadmin.com/u/morganperre)
#### Post date: [September 26, 2022, 10:13am UTC](https://community.forestadmin.com/t/smart-action-not-available-after-pushing-the-code-to-production/5302/2 "2022-09-26T10:13:10Z")

</div>

Hello @jacques_liao,

I see that you are using our [Roles feature](https://docs.forestadmin.com/user-guide/project-settings/teams-and-users/manage-roles). The **smart actions are available by default in development** but you **need to configure who can trigger them in the production environment**.

- Did you update your roles to enable the smart action trigger?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/0/0db9cc187655fbb59edb29442dc2fcb086fc01a6.png)

Let me know if it helps.

Kind regards,  
Morgan

---

<div class="post-metadata">

### Author: ![jacques\_liao](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/jacques_liao/32/3723_2.png) [@jacques\_liao](https://community.forestadmin.com/u/jacques_liao)
#### Post date: [September 26, 2022, 10:43am UTC](https://community.forestadmin.com/t/smart-action-not-available-after-pushing-the-code-to-production/5302/3 "2022-09-26T10:43:54Z")

</div>

Indeed I had not activated the smart action in the role.  
Thank you @morganperre !
