Skip to content

Commit

Permalink
Changed FlowDescription__c.field to long text area + added automatic …
Browse files Browse the repository at this point in the history
…field-truncation for LogEntry__c inserts (reported in #199)
  • Loading branch information
jongpie committed Sep 10, 2021
1 parent 4938da6 commit 378b69c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ public without sharing class LogEntryEventHandler extends LoggerSObjectHandler {
this.logEntryEventUuidToTagNames.put(logEntry.EventUuid__c, logEntryTagNames);
}
}
insert this.logEntries;
Database.DmlOptions dmlOptions = new Database.DmlOptions();
dmlOptions.AllowFieldTruncation = true;
Database.insert(this.logEntries, dmlOptions);
}

private void appendRuleBasedTags() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
<externalId>false</externalId>
<inlineHelpText>Flow definition information, specified by the org’s admin.</inlineHelpText>
<label>Flow Description</label>
<required>false</required>
<length>4000</length>
<trackFeedHistory>false</trackFeedHistory>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>TextArea</type>
<type>LongTextArea</type>
<visibleLines>8</visibleLines>
</CustomField>

0 comments on commit 378b69c

Please sign in to comment.