You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*showToast* - _(FlowActionCall)_ - If message parameter is not supplied, flow crashes with [Cannot read properties of undefined (reading 'toLowerCase')]
#1570
Open
cdevelin opened this issue
Aug 1, 2024
· 1 comment
Add Show Toast action to a flow, set the input value parameters on the flow action: [Dismissal mode: pester], [Duration: 5], [Icon: do not activate], [Message: do not activate], [Title: 'Test]', [Type: info], [URL Label: do not activate], [URL Link: do not activate]
Activate flow and add to a lightning page
Run flow on lightning page
See error
Expected behaviour
Flow should show a simple toast action with a title, but no detailed message. e.g. 'Test'
Actual behaviour
Flow crashes, with the log error:
Error element Info_Toast (FlowActionCall).
Action failed: c:showToast$controller$invoke [Cannot read properties of undefined (reading 'toLowerCase')]
The text was updated successfully, but these errors were encountered:
While I agree with the logic that every toast should have a title, if you look at the documentation, it states that the message parameter is required, and the title parameter is optional. This is a little confusing, I know.
For a single line of text in the toast, the standard usage is to only supply a message value, and not include a title parameter. The message value is then displayed in the large text size inside the toast.
Steps to reproduce the behavior:
Expected behaviour
Flow should show a simple toast action with a title, but no detailed message. e.g. 'Test'
Actual behaviour
Flow crashes, with the log error:
Error element Info_Toast (FlowActionCall).
Action failed: c:showToast$controller$invoke [Cannot read properties of undefined (reading 'toLowerCase')]
The text was updated successfully, but these errors were encountered: