v4.11.7 - Bugfix For Save Failures When Using Tagging + SYNCHRONOUS_DML #563
jongpie
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release fixes issue #526 reported by @cbcruz74 (in discussion #511) - previously, using a combination of Nebula Logger's tagging system + the save method
SYNCHRONOUS_DML
(shown in the snippet below) would fail, preventing some logging data from being saved.This was caused by code that relied on the standard field
LogEntryEvent__e.EventUuid
- part of the tagging system internally used this field to track & create relatedLogEntryTag__c
records for newLogEntry__c
records. When using the save methodSYNCHRONOUS_DML
, theEventUuid
is null, which broke theLogEntryTag__c
record creation.A huge thank you to both @JMercie for working on this release (PR #539), and to @cbcruz74 for reporting the issue!
Core Unlocked Package Changes
New Field
LogEntry__c.UniqueId__c
LogEntry__c.UniqueId__c
- this field is now used to upsertLogEntry__c
recordsLogEntryEvent__e.TransactionId__c
andLogEntryEvent__e.TransactionEntryNumber__c
. The combination of these fields has been implicitly a unique composite key ever since the fieldTransactionEntryNumber__c
was introduced inv4.4.0
, but it wasn't being stored anywhere - now it is, in the newUniqueId__c
fieldUniqueId__c
field to the FlexiPageLogEntryRecordPage
UniqueId__c
field to the permission setsLoggerAdmin
,LoggerLogViewer
, andLoggerEndUser
Bugfix For Save Failures When Using Tagging +
SYNCHRONOUS_DML
LogEntryEventHandler
class to leverage the new fieldLogEntry__c.UniqueId__c
for upserting & internally trackingLogEntry__c
records and their associatedLogEntryTag__c
records (instead of leveraging the standard fieldLogEntryEvent__e.EventUuid
)Installation Info
Core Unlocked Package - no namespace
Full Changelog: v4.11.6...v4.11.7
sf package install --wait 20 --security-type AdminsOnly --package 04t5Y000001HZfaQAG
sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y000001HZfaQAG
This discussion was created from the release Bugfix For Save Failures When Using Tagging + SYNCHRONOUS_DML.
Beta Was this translation helpful? Give feedback.
All reactions