• Nicholas Sullivan
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
So my users are complaining that the notification bell in the top right isn't helpful, so I'm attempting to change the notification to the utility bar.

According to this  (https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_lightning_setUtilityHighlighted.htm) documentation you can send a utility notification, but I'm struggling at triggering the notification. Is there a way to trigger this kind of notification without a button click, and instead some kind of flow?
So my users are complaining that the notification bell in the top right isn't helpful, so I'm attempting to change the notification to the utility bar.

According to this  (https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_lightning_setUtilityHighlighted.htm) documentation you can send a utility notification, but I'm struggling at triggering the notification. Is there a way to trigger this kind of notification without a button click, and instead some kind of flow?
I have created a Flow that sends an email using emailalert and afterwards creates an 'emailMessage' record in order to show that email in the activity timeline. This is working so far. But there are 2 things which are not.
  1. 'isTracked' is set to true but the email in the activity timeline stays always at "unopened" - is there something else I have to define? It is working when emails are sent and created the "regular/non-flow" way
  2. 'FromId' is where I would argue needs to be set the id of the user. Unfortunately it throws an error:
Error Occurred: Error occurred attempting to get data type for : RawFieldImpl[tableName: EmailMessage, columnName: FromId]

The result is that in the activity timeline it does not say "You sent the mail", but "jan.tonnet@..." sent the mail.

User-added image

User-added image

User-added image