# wixCrm.notifications.notify 400 error

**URL:** <https://forum.wixstudio.com/t/wixcrm-notifications-notify-400-error/43793>\
**Category:** Ask the community\
**Tags:** technical-talk, code, partners\
**Created:** [November 1, 2020, 12:35pm UTC](https://forum.wixstudio.com/t/wixcrm-notifications-notify-400-error/43793 "2020-11-01T12:35:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdevelopment2019](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/bdevelopment2019/32/17152_2.png) [@bdevelopment2019](https://forum.wixstudio.com/u/bdevelopment2019)\
**Post date:** [November 1, 2020, 12:35pm UTC](https://forum.wixstudio.com/t/wixcrm-notifications-notify-400-error/43793/1 "2020-11-01T12:35:58Z")

</div>

I’m using a code I found on the forum:  
Backend

```javascript
import wixCrm from 'wix-crm-backend';

export function notifyOwnerOnDashboard(title, action,site,role) {
  wixCrm.notifications.notify(
 "Notification body", 
     ["Dashboard"], 
    {
 "title" : title,
 "actionTitle": action,
 "actionTarget": {"url": site},
 "recipients": { "role": role}
    }
 
  );
   console.log('Notification sent')
}

```

In page

```javascript
import {notifyOwnerOnDashboard} from 'backend/Notification';

export function Notifyteam() {
 const title = "I'm a title"
 const action = "This is what I have done" ;
 const site = "www.google.com" ; // use full URL link
 const role = "Owner";    
    notifyOwnerOnDashboard(title,action,site,role)

}

export function btnNotification_click(event) {
    Notifyteam()
}

```

but copying it exactly the same gives me this error:

![](https://us1.discourse-cdn.com/wix/original/3X/6/8/68385fa63418b8c209af11761ab96f015d34d066.png)  
How can i fix this?

---

<div class="post-metadata">

**Author:** ![stevenjose](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/stevenjose/32/3202_2.png) [@stevenjose](https://forum.wixstudio.com/u/stevenjose)\
**Post date:** [November 2, 2020, 2:12pm UTC](https://forum.wixstudio.com/t/wixcrm-notifications-notify-400-error/43793/2 "2020-11-02T14:12:37Z")

</div>

Hi there, if you’re unable to find a response here, I recommend asking in our [Corvid forum](https://www.wix.com/corvid/forum) as well.

---

<div class="post-metadata">

**Author:** ![bdevelopment2019](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/bdevelopment2019/32/17152_2.png) [@bdevelopment2019](https://forum.wixstudio.com/u/bdevelopment2019)\
**Post date:** [November 2, 2020, 3:57pm UTC](https://forum.wixstudio.com/t/wixcrm-notifications-notify-400-error/43793/3 "2020-11-02T15:57:07Z")

</div>

I wrote here just because in the other forum they don’t answer

---

<div class="post-metadata">

**Author:** ![stevenjose](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/stevenjose/32/3202_2.png) [@stevenjose](https://forum.wixstudio.com/u/stevenjose)\
**Post date:** [November 2, 2020, 4:48pm UTC](https://forum.wixstudio.com/t/wixcrm-notifications-notify-400-error/43793/4 "2020-11-02T16:48:58Z")

</div>

@bdevelopment2019 maybe @thrishtilabs or @wingcc can provide some insight as to why this may be happening.
