v4.11.1 - Added the Ability to Throw Fault Exception in Flow Actions #531
jongpie
announced in
Announcements
Replies: 2 comments
-
This is amazing, this will work well for callouts I think. |
Beta Was this translation helpful? Give feedback.
0 replies
-
awesome, thank you @jongpie! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A huge thank you to @JMercie for working on this release, and congratulations on their first-ever open source contribution! (PR #516). And many thanks also to @Sidle for suggesting this great enhancement (issue #489).
Core Unlocked Package Changes
Added the Ability to Throw Fault Exceptions in Flow Actions
This release closes #489 by providing a new option when logging in Flow - when logging a Flow fault message (shown as
1
in the screenshot below), you can now have the invocable action automatically re-throw the encountered exception (shown as2
in the screenshot below). This provides a great way to still display an error to the user & rollback any other DML in the current transaction, while still saving your logging data.FlowLogEntry
,FlowRecordLogEntry
, andFlowCollectionLogEntry
) to have a new optionalBoolean
property,shouldThrowFaultMessageException
. When set totrue
, the provided Flow fault message (using theString
propertyfaultMessage
) will be used to create & throw an instance of the standard exception classSystem.FlowException
FlowLogger
to handle throwing the exception for all 3 Flow invocable logging actionsInstallation Info
Core Unlocked Package - no namespace
Full Changelog: v4.11.0...v4.11.1
sf package install --wait 20 --security-type AdminsOnly --package 04t5Y000001TsX4QAK
sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y000001TsX4QAK
This discussion was created from the release Added the Ability to Throw Fault Exception in Flow Actions.
Beta Was this translation helpful? Give feedback.
All reactions