0

I want to notify my users without any specific record related.

Insert a FeedItem with the parentId set to the userId does not create the red notification in the top-right corner bell.

Do I need to use CustomNotification or can it be achieved with FeedItem?

Please, note that I am not asking for a way to create bell notifications in apex, I know there is a one with "Custom Notifications". I am asking if a similar result can be achieved with FeedItem, which is unresponded here, where Enrik Hysko raises the same concern that I have,

9
  • 3
    Does this answer your question? Bell notifications via apex Commented May 18, 2021 at 5:58
  • related help.salesforce.com/…
    – cropredy
    Commented May 18, 2021 at 6:04
  • @NagendraSingh I found that post, but like in the accepted response, there is a comment that says "I tried this but it created only Chatter post, no bell notification. – Enrik Hysko" . I am facing the same, but that comment has no reply Commented May 18, 2021 at 6:20
  • @cropredy I do not want email notifications, but bell notifications inside of salesforce org Commented May 18, 2021 at 6:21
  • @NagendraSingh Please, note that I am not asking for a way to create bell notifications in apex, I know there is a one, "Custom Notifications". I am asking if a similar result can be achieved with FeedItem, which is unresponded in the supposed "original post", so the Post Itself is not repeated. Kindly remove your "close-duplicate vote". Commented May 18, 2021 at 6:30

1 Answer 1

2

Responding my own question:

Bell notification with FeedItem is achievable and it should appear.

However, if the same admin user that is creating the feedItem is the parentId too, no notification will appear.

If you changed the parentId to be a different user and log in the org as him, the notification will appear.

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .