Slides

https://docs.google.com/presentation/d/1yMlNugksYqGpLE-48p0aNstE9uBW8CltKDrkDBtevTs/edit?usp=sharing

Video

TBA

See also Screen Shots

General Platform Events Documentation

General Platform Events Posts

1. Chained Flows

What

Why

Another Scenario

Steps

See Screen Shots

Gotchas

Salesforce bug

In my demo I had a few rogue Paused Flow Interviews…

There is a “bug” in Salesforce that Support won’t raise as a Known Issue and won’t include in the Documentation. If you have a heap* of Paused Flow Interviews still open, then Platform Events won’t fire. Yep, bizarre! I did a full video trying to explain the issue https://www.youtube.com/watch?v=gurBi3n6v20 and now that I review the video I can’t see there is a heap of Paused Flow Interviews hanging around so it’s making a liar out of me! Definitely raise a support ticket if you get stuck with any of this.
* unknown how many but I had hundreds due to a logic error in my Flow that was not resuming from the last pause.

Note: I would NEVER use Paused Flow Interviews for actual waiting… Eg where Time Based Workflows work really well and you can see how many are waiting and you can know exactly which record the Flow is waiting on. Paused Flow Interviews are just a bit useless still.

No Pause in Screen Flows or Record Triggered Flows

Notifications have some glaring issues

NOTE: Notifications ONLY work IF the user has cleared their notifications! If the user has more than 20 unread notifications and you don’t get “notified” at all.

There is also this huge gotcha with notifications - if you open the Notifications panel they are ALL marked as read. How many times I have accidentally done this when logged in as a user because I can’t stand seeing a notification count, I have lost count…
https://trailblazer.salesforce.com/ideaView?id=0873A000000TtRYQA0

Users can turn OFF notifications on Mobile.

So maybe do a Chatter Post instead. Do NOT do an email notification as that defeats the purpose of having Salesforce.

2. Replace Wait

Why

Yeah, this is not a great example, because what happens when a record is deleted and you need to run DLRS then. I’m using this in an environment where the user can’t delete the child records… so only build things that work for your, not just because they exist.

Things to Note

You can’t (currently - I hope it’s coming) do Pause elements in After Save Flows. You can’t use the Commit Transaction Action (see Unofficial SF) work around either. You CAN do Pause Elements in Autolaunched Flows and you CAN do 0 minutes Wait time in Process Builder. This is the only reason I would use Wait in Process Builder.

3. External System Updates

Why

Things to Note

Resources

It’s not a good idea to use the easy option that they show in the post, and what I used in my demo, to do the SOAP Auth because it relies on a hard coded username, password and token. I used this for my Scratch Org, but don’t use it for Prod.

4. Flow Error Alerts

Why

Things to Note

Unfortunately this is only for Screen Flows. It’s a big miss that this excellent resource can’t be used for other flow types.

Resources

This video shows how they used Platform Events for all errors https://www.youtube.com/watch?v=7iyoJGN8XN4 It may be overkill for your use-case.