-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displaying the toast on an Opportunity when another record is created #6
Comments
Hi Gidi, as per your use case, I recommend a few things to check:
Can you check the above and let me know if the issue is still there? |
Hi Rahul,
Since the update doesn't succeed (because of the exception), do you think that the toast does not work since the page isn't refreshed? |
Yes, it should work without the id as well. Are you testing this with system admin? If not, does the user possess permission on the ToastEvent__e object? It should work even if the page is not refreshed. Can you share some more details or maybe screenshots? Did you see any error on the browser console? |
I tested it with my Admin user, so I don't think it's a permission issue. |
Thank you for sharing the screenshots Gidi, it looks fine. If the platform event is firing, looks like the issue is on the detail page. Ideally, there should be a log printed like: Also, can you try it once in system mode by checking the |
Where can I see the log you've mentioned? |
I think that I'll try to replicate the scenario in my own developer environment to see if it's working or not. |
Yes, I don't see any issue here. If that still doesn't work, we can probably connect! |
Many thanks, Rahul! |
Rahul Hi, |
Hi Gidi, thank you for the update. Looks like platform events are not firing in the work environment or maybe a permission issue. Can you check once if platform events are fired? Maybe you can have a separate flow/process builder which is running only when the toast platform event is fired and that flow can do some update. |
Rahul Hi, |
Can you drop a message on our telegram group. We may connect for 5-10 mins probably over the weekend and resolve it. |
Great, thanks! |
Hi Gidi, I am closing this issue as we discussed it and it's resolved now, feel free to reopen it or create a new one in case you face any problem. Thanks! |
Rahul Hi,
First of all, I want to thank you for this great component!
I have a scenario that doesn't trigger the toast.
My use case:
I want to display a toast message to my users based on an exception they receive.
For example, a user tries to update an Opportunity, but the update (process) fails due to a validation rule.
Usually, the (red) exceptions at the button do not provide meaningful information, so I'm trying to display in the toast something more useful for the end-user.
I have an application that creates records every time an exception happens.
What I'm trying to do is as follows:
I tried it out but it doesn't work.
It is working when the platform event is created based on the opportunity update, but not when a different object record is created.
Thanks again!
Gidi
The text was updated successfully, but these errors were encountered: