Skip to main content
Groupe

Notification Builder

Group for questions & discussion around Notification Builder and custom notifications in general.

Error Occurred: INVALID_TYPE: sObject type 'CustomNotificationType' is not supported.

I have created a Custom Notification Type.

I am calling it from a Flow, where I have inserted the correct Id for it and provided all the params. When invoked from the Debugger, it works fine. However, when invoked from a Process triggered by a Platform event, I get an error:

Error Occurred: INVALID_TYPE: sObject type 'CustomNotificationType' is not supported.

Since it works from debugger (in Flow Builder), but not when called from a Process, I'm wondering if user context has anything to do with it? I tried without SenderId and also including the SenderId, set to the Admin's Id. Still doesn't work.

10 commentaires
  1. 14 févr. 2023, 16:02

    @Kunal Khattry, thanks for the input. Again, the issue with that is the user profile that initiates this sequence is Guest Site User (incoming text from Twilio), and that profile is limited. 

    I recently discovered that if trigger a flow from a platform event, it runs in the user context of whatever caused the platform event. So, in this case, the flow would run in Guest Site User context. However, if you write a trigger on that platform event, the trigger runs in Automated User context. So that trigger can either fire a new platform event (though this would eat into your platform event limits), or it could call a flow -- which would then run in Automated User context. (And, BTW, even if you save your flow to run as System context, it somehow manages to retain that Guest Site User context.)

0/9000

@Notification Builder Hi, I just discovered this group and thought I'd share my idea in case there's any feedback:

Alert tone options for Salesforce Mobile App

Custom Notifications are a great feature.

However the default alert tone for the IOS app can be easily missed.

Having the option to set specific alert tones would be really useful.

eg. you could have the default tone for chatter messages, and a different tone for a new case notification (sent via custom notification in Process Builder).

https://success.salesforce.com/ideaView?id=0873A000000U414QAC

0/9000

@Notification Builder - Hello!  Does anyone know if it's possible to "unpin" the notifications from calendar items in Salesforce?  I have a user who does not want to dismiss the notifications because he hasn't yet completed them but they're in the way.  I've tried to figure out if I can click and drag it out of the way but it doesn't seem possible.  Searching for a resolution, the best I can find is enable or disable notifications.  Any suggestions would be greatly appreciated.  Thanks!

@Salesforce Business Analysts 

0/9000
Mira Shah a publié du contenu dans The Blog Group

check out my new blog. 

 

How to Set up Push Notifications for Salesforce Opportunities

 

Salesforce added a cool feature called ‘custom notification’ to the Process Builder in the Summer ‘19 release. Custom notifications allow you to send important information in real-time, so your users don’t miss record changes and updates, available for the Salesforce Lightning Experience and the Salesforce Mobile app. You can define when you want the notification trigger, what message would you like to show, and which users to notify.

How to Set up Push Notifications for Salesforce Opportunities

4 commentaires
  1. 20 févr. 2020, 03:36
    Thanks @Joshua Schneyer that is good news and I understand it does add extra complexity. Really the main pain point is users not going in to update their opportunities close dates - realise it is also an adoption issue too. We currently just use validation rules where any field changes will prompt them to update the close date into the future but they need to visit the record for this and try to update, and the other way is just reporting where we send them a report of those with past closed days to update it. A system notification popping up to ask them to visit some opps that have not been updated in XX days or when it passes this close date as a reminder would be a great update. Thanks!
0/9000

Another Feature Request -- this is a big one...

I want to put a Lightning Component or a Flow in the actual body of the Custom Notification. The idea being that I can notify a user of something happening, then let them respond right from the Notification, without navigating away from the page.

 

I imagine the implementation would be that you specify the URL to the flow or the Lightning Component when you create the Custom Notification. Then the input variables would be specified in the Flow, or in the meta file for the LWC.

 

Alternately, if we can't actually put the component/flow IN the notification, then how about let us launch it (URL) instead of the TargetId?

1 commentaire
  1. 3 déc. 2019, 21:02
    @Pat McClellan

    I'm not sure how close we are to rendering components/flows within a notification itself, but we've thought about a couple things that might get close.

    1) Custom action buttons in notifications

    2) Arbitrary navigation targets (likely via page reference)

    Would either of those be suitable for your use case?

0/9000

Feature Request

When calling a Custom Notification from Process Builder triggered by a Platform Event, please allow us to specify the TargetId. Currently it locks onto the related record specified in the initial node, but I want to target a different record.

1 commentaire
0/9000