You need to sign in to do that
Don't have an account?
Fota Madalina
I receive an empty list of notifications using the Connect REST API endpoint: /connect/notifications
Hello everyone,
I want to get all the current user's notifications to display them in a LWC component. For this, I tried to make a REST API callout from Salesforce to the same Salesforce org using Connect REST API Resources (/connect/notifications — documentation: https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_notifications_resources.htm)
I tried to make the callout using first Workbench, then an apex class, but I always get the same result, an empty list of notifications. The current user has both custom and standard notifications, so I don't understand why I always get an empty list.
Does anyone have any idea why I receive an empty list of notifications?
I want to get all the current user's notifications to display them in a LWC component. For this, I tried to make a REST API callout from Salesforce to the same Salesforce org using Connect REST API Resources (/connect/notifications — documentation: https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_notifications_resources.htm)
I tried to make the callout using first Workbench, then an apex class, but I always get the same result, an empty list of notifications. The current user has both custom and standard notifications, so I don't understand why I always get an empty list.
Does anyone have any idea why I receive an empty list of notifications?
Even it tried the same in workbecnch but it's not coming. May be due to Workbench connected apps...we are facing this restriction.
But when i am running the below code in developer console Anonymous window am getting the connect nottification in debug logs. So you can try the below code in you LWC Component to fetch the Connect Notifications.
Thanks,
Maharajan.C
The code given by you works but only returns custom notifications (the second notification in my screenshot above). Do you know any way to get standard notifications as well?
The code given by you works but only returns custom notifications (the second notification in my screenshot above). Do you know any way to get standard notifications as well? Caratteri Speciali (https://caratteri-speciali.com/)