Skip to content

Commit 2b2fce1

Browse files
jongpiejamessimone
andauthored
Spring '22 release - v4.7.0 (#274)
[LoggerSettings__c changes] * Closed #279 by adding a new settings field DefaultLogScenario__c and new method Logger.getScenario() * Closed #258 by adding 2 new fields to LoggerSettings__c (IsSavingEnabled__c and IsPlatformEventStorageEnabled__c) * Cleaned up help text in several LoggerSettings__c fields * Added new field LoggerSettings__c.DefaultLogOwner__c that can be used to specify a default owner of Log__c records, using a user ID, username, queue ID or queue developer name * Renamed LoggerSettings__c field StripInaccessibleRecordFields__c to IsRecordFieldStrippingEnabled__c for consistency [Log__c UI changes] * Renamed "View JSON" quickAction to "Open Viewer", and added tabs within logViewer lwc to provide views for both JSON (existing) and log file (new) - a new 'download' button now allows exporting the content to a file - For the unlocked package, the logJSON lwc was renamed back to logViewer * Fixed a conditional render rule on LogEntryRecordpage.flexipage, added an extra check in parseStackTrace() method to handle some problematic lines within a string that is otherwise valid, removed namespace filter when querying ApexClass in LogEntryHandler * Added picklist values for API Versions in calendar year 2022 [Managed Package changes] * Changed visibility of LoggerParameter__mdt object from 'Protected' to 'Public' * Made most LoggerParameter__mdt records non-protected so they can be updated in the managed package * Worked with @jamessimone to implement a custom approach for dynamically retrieving objects & fields (including namespace) in loggerSettings and logEntryEventStream LWCs, using the new Apex class LoggerSObjectMetadata - LWC does not officially support platform events, custom settings, or custom metadata types, so LoggerSObjectMetadata will be used instead * Re-added skeleton of the deprecated quick action ViewJSON and aura cmp logJSONViewer for the managed package [Bugfixes] * Fixed #272 by explicitly delcaring the list as List<Schema.PicklistEntry> instead of just List<PicklistEntry> [Improvements for Tests & Utilities] * Added calls to Test.getEventBus().deliver() in Flow classes to try to resolve some inconsistent test failures in the pipeline * Standardized calls to Database.query() to also use String.escapeSingleQuotes() * Fixed #276 - Added a check in LoggerEmailUtils to check if email deliverability is enabled before sending an email [skip ci] * Refactored some code in LogHandler, removed exclusion of PMD rule 'AvoidGlobalModifier' * Added missing test in LogEntryTagHandler_Tests for updating records * Fixed some test asserts for 'DUPLICATE_VALUE' error that didn't work correctly when the user's language was not English * Updated LoggerTestUtils test method to create its own test user, instead of trying to update the current user's record ## Pipeline & Packaging * Bumped package version to v4.7.0, added devDependencies for outdated packages reported by dependabot in GitHub * Closed #263 by adding new keyword "ancestorVersion": "HIGHEST" in both sfdx-project.json files * Updated mgd pkg creation script to use --codecoverage instead of --skipvalidation * Updated codecov.yml so PR comments are deleted & readded, instead of updated * Fixed error handling of package creation & installation in pwsh scripts * Temporarily disabling pipeline check for updated docs due to an error in apexdocs package * Switched to using JWT bearer flow in pipeline for dev hub auth * Upgraded sfdx-cli, cleaned up package.json, cleaned up both sfdx-project.json files * Removed local linking of sfdx-scanner in npm prepare script, added linking command to build.yml, added new sfdx plugin for prettier * Moved scripts folder back to being a top-level folder * Switched to using new packageAlias sorting feature in bummer sfdx plugin * Switched from using sfdx force:community:create + a delay in the pipeline, to instead deploying metadata for a skeleton Experience Cloud site The pipeline has been having inconsistent failures because it previously had a 2 minute delay added to wait for force:community:create, but sometimes it took Salesforce longer to finish creating the site asynchronously. Using a deploy will make it a synchronous operation, so it should prevent the inconsistent failures. Co-authored-by: James Simone <16430727+jamessimone@users.noreply.github.com>
1 parent f190ab1 commit 2b2fce1

239 files changed

Lines changed: 12042 additions & 19289 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.github/
2+
.husky/
3+
.sfdx/
4+
.vscode/
5+
test-coverage/

.github/codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ coverage:
88
patch: off
99
ignore:
1010
- 'nebula-logger-recipes/**/*'
11+
comment:
12+
behavior: new

.github/workflows/build.yml

Lines changed: 60 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,33 @@ jobs:
6161
if: steps.cache-npm.outputs.cache-hit != 'true'
6262
run: npm ci
6363

64-
- name: 'Verify package version number is updated'
64+
- name: 'Authorize Dev Hub'
6565
if: ${{ github.event_name == 'pull_request' }}
66+
shell: bash
6667
run: |
67-
echo ${{ env.DEVHUB_SFDX_URL }} > ./DEVHUB_SFDX_URL.txt
68-
npx sfdx auth:sfdxurl:store --sfdxurlfile ./DEVHUB_SFDX_URL.txt --setalias nebula-logger-packaging --setdefaultdevhubusername
69-
rm ./DEVHUB_SFDX_URL.txt
70-
npm run package:version:number:verify
68+
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
69+
npx sfdx force:auth:jwt:grant --instanceurl ${{ env.DEV_HUB_AUTH_URL }} --clientid ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
7170
env:
72-
DEVHUB_SFDX_URL: ${{ secrets.DEVHUB_SFDX_URL }}
71+
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
72+
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
73+
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
74+
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}
75+
76+
- name: 'Verify package version number is updated'
77+
if: ${{ github.event_name == 'pull_request' }}
78+
run: npm run package:version:number:verify
7379

7480
- name: 'Verify LWC with ESLint'
7581
run: npm run lint:verify:lwc
7682

7783
- name: 'Verify Apex with SFDX Scanner'
78-
run: npm run lint:verify:apex
84+
run: |
85+
npm run sfdx:plugins:link:scanner
86+
npm run lint:verify:apex
7987
80-
- name: 'Verify docs are updated'
81-
run: npm run docs:verify
88+
# TODO - uncomment - temporarily commented-out due to an issue with apexdocs in the pipeline
89+
# - name: 'Verify docs are updated'
90+
# run: npm run docs:verify
8291

8392
- name: 'Verify formatting with Prettier'
8493
run: npm run prettier:verify
@@ -140,13 +149,16 @@ jobs:
140149
- name: 'Authorize Dev Hub'
141150
shell: bash
142151
run: |
143-
echo ${{ env.DEVHUB_SFDX_URL }} > ./DEVHUB_SFDX_URL.txt
144-
npx sfdx auth:sfdxurl:store --sfdxurlfile ./DEVHUB_SFDX_URL.txt --setalias nebula-logger-packaging --setdefaultdevhubusername
152+
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
153+
npx sfdx force:auth:jwt:grant --instanceurl ${{ env.DEV_HUB_AUTH_URL }} --clientid ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
145154
env:
146-
DEVHUB_SFDX_URL: ${{ secrets.DEVHUB_SFDX_URL }}
155+
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
156+
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
157+
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
158+
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}
147159

148160
- name: 'Create Base Scratch Org'
149-
run: npm run org:create:base -- -durationdays 1 -devhubs nebula-logger-packaging
161+
run: npx sfdx force:org:create --durationdays 1 --definitionfile ./config/scratch-orgs/base-scratch-def.json --wait 20 --setdefaultusername --json
150162

151163
- name: 'Push Source to Scratch Org'
152164
run: npm run source:push
@@ -187,21 +199,19 @@ jobs:
187199
- name: 'Authorize Dev Hub'
188200
shell: bash
189201
run: |
190-
echo ${{ env.DEVHUB_SFDX_URL }} > ./DEVHUB_SFDX_URL.txt
191-
npx sfdx auth:sfdxurl:store --sfdxurlfile ./DEVHUB_SFDX_URL.txt --setalias nebula-logger-packaging --setdefaultdevhubusername
202+
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
203+
npx sfdx force:auth:jwt:grant --instanceurl ${{ env.DEV_HUB_AUTH_URL }} --clientid ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
192204
env:
193-
DEVHUB_SFDX_URL: ${{ secrets.DEVHUB_SFDX_URL }}
194-
195-
- name: 'Create Scratch Org with Experience Sites Enabled'
196-
run: npm run org:create:experience-cloud -- -durationdays 1 -devhubs nebula-logger-packaging
205+
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
206+
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
207+
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
208+
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}
197209

198-
- name: 'Create Test Experience Site'
199-
run: npm run experience:create
210+
- name: 'Create Experience Cloud Scratch Org'
211+
run: npx sfdx force:org:create --durationdays 1 --definitionfile ./config/scratch-orgs/experience-cloud-scratch-def.json --wait 20 --setdefaultusername --json
200212

201-
- name: 'Wait for Experience Site creation'
202-
uses: maddox/actions/sleep@master
203-
with:
204-
args: '120'
213+
- name: 'Deploy Test Experience Site Metadata'
214+
run: npm run experience:deploy
205215

206216
- name: 'Push Source to Scratch Org'
207217
run: npm run source:push
@@ -251,13 +261,16 @@ jobs:
251261
if: steps.cache-npm.outputs.cache-hit != 'true'
252262
run: npm ci
253263

254-
- name: 'Authorize Packaging Org'
264+
- name: 'Authorize Dev Hub'
255265
shell: bash
256266
run: |
257-
echo ${{ env.DEVHUB_SFDX_URL }} > ./DEVHUB_SFDX_URL.txt
258-
npx sfdx auth:sfdxurl:store --sfdxurlfile ./DEVHUB_SFDX_URL.txt --setalias nebula-logger-packaging --setdefaultdevhubusername
267+
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
268+
npx sfdx force:auth:jwt:grant --instanceurl ${{ env.DEV_HUB_AUTH_URL }} --clientid ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
259269
env:
260-
DEVHUB_SFDX_URL: ${{ secrets.DEVHUB_SFDX_URL }}
270+
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
271+
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
272+
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
273+
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}
261274

262275
- name: 'Authorize Demo Org'
263276
shell: bash
@@ -268,12 +281,14 @@ jobs:
268281
PKG_DEMO_ORG_SFDX_URL: ${{ secrets.NEBULA_PKG_DEMO_SANDBOX_SFDX_URL }}
269282

270283
- name: 'Create & Install Package Version'
271-
run: npx pwsh ./config/scripts/build/create-and-install-package-version.ps1 -targetpackagealias '"Nebula Logger - Core"' -targetreadme ./README.md -targetusername nebula-logger-package-demo
284+
run: npx pwsh ./scripts/build/create-and-install-package-version.ps1 -targetpackagealias '"Nebula Logger - Core"' -targetreadme ./README.md -targetusername nebula-logger-package-demo
272285

273286
- name: 'Commit New Package Version'
274287
run: |
275288
git config --local user.email "action@github.com"
276289
git config --local user.name "GitHub Action Bot"
290+
npm run sfdx:plugins:link:bummer
291+
npx sfdx bummer:package:aliases:sort
277292
npx prettier --write ./sfdx-project.json
278293
git add ./sfdx-project.json
279294
git commit -m "Created new package version"
@@ -305,13 +320,16 @@ jobs:
305320
if: steps.cache-npm.outputs.cache-hit != 'true'
306321
run: npm ci
307322

308-
- name: 'Authorize Packaging Org'
323+
- name: 'Authorize Dev Hub'
309324
shell: bash
310325
run: |
311-
echo ${{ env.DEVHUB_SFDX_URL }} > ./DEVHUB_SFDX_URL.txt
312-
npx sfdx auth:sfdxurl:store --sfdxurlfile ./DEVHUB_SFDX_URL.txt --setalias nebula-logger-packaging --setdefaultdevhubusername
326+
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
327+
npx sfdx force:auth:jwt:grant --instanceurl ${{ env.DEV_HUB_AUTH_URL }} --clientid ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
313328
env:
314-
DEVHUB_SFDX_URL: ${{ secrets.DEVHUB_SFDX_URL }}
329+
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
330+
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
331+
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
332+
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}
315333

316334
- name: 'Create Beta Managed Package Version'
317335
run: npm run package:version:create:managed
@@ -339,13 +357,16 @@ jobs:
339357
if: steps.cache-npm.outputs.cache-hit != 'true'
340358
run: npm ci
341359

342-
- name: 'Authorize Packaging Org'
360+
- name: 'Authorize Dev Hub'
343361
shell: bash
344362
run: |
345-
echo ${{ env.DEVHUB_SFDX_URL }} > ./DEVHUB_SFDX_URL.txt
346-
npx sfdx auth:sfdxurl:store --sfdxurlfile ./DEVHUB_SFDX_URL.txt --setalias nebula-logger-packaging --setdefaultdevhubusername
363+
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
364+
npx sfdx force:auth:jwt:grant --instanceurl ${{ env.DEV_HUB_AUTH_URL }} --clientid ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
347365
env:
348-
DEVHUB_SFDX_URL: ${{ secrets.DEVHUB_SFDX_URL }}
366+
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
367+
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
368+
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
369+
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}
349370

350371
- name: 'Promote package versions'
351-
run: npx pwsh ./config/scripts/build/promote-readme-packages.ps1
372+
run: npx pwsh ./scripts/build/promote-readme-packages.ps1

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ nebula-logger/**/main/default/
77
test-coverage/
88
temp/
99

10+
# Additional folders that are temporarily copied when creating a version of the managed package
11+
nebula-logger/managed-package/core/main/configuration/
12+
nebula-logger/managed-package/core/main/log-management/
13+
nebula-logger/managed-package/core/main/logger-engine/
14+
nebula-logger/managed-package/core/main/plugin-framework/
15+
nebula-logger/managed-package/core/tests/
16+
1017
# NPM
1118
node_modules/
1219
yarn.lock

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55

66
Designed for Salesforce admins, developers & architects. A robust logger for Apex, Lightning Components, Flow, Process Builder & Integrations.
77

8-
## Unlocked Package - v4.6.16
8+
## Unlocked Package - v4.7.0
99

10-
[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015lLzQAI)
11-
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015lLzQAI)
10+
[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015lXSQAY)
11+
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y0000015lXSQAY)
1212
[![View Documentation](./images/btn-view-documentation.png)](https://jongpie.github.io/NebulaLogger/)
1313

14-
## Managed Package - v4.6.0
14+
## Managed Package - v4.7.0
1515

16-
[![Install Managed Package in a Sandbox](./images/btn-install-managed-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?mgd=true&p0=04t5Y0000015keOQAQ)
17-
[![Install Managed Package in Production](./images/btn-install-managed-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?mgd=true&p0=04t5Y0000015keOQAQ)
16+
[![Install Managed Package in a Sandbox](./images/btn-install-managed-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?mgd=true&p0=04t5Y0000015lXNQAY)
17+
[![Install Managed Package in Production](./images/btn-install-managed-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?mgd=true&p0=04t5Y0000015lXNQAY)
1818
[![View Milestone](./images/btn-view-managed-package-milestone.png)](https://github.com/jongpie/NebulaLogger/milestone/6)
1919

2020
---

config/linters/pmd-ruleset.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
</description>
1111
<rule ref="category/apex/bestpractices.xml">
1212
<exclude name="ApexAssertionsShouldIncludeMessage" />
13-
<exclude name="AvoidGlobalModifier" />
1413
<exclude name="AvoidLogicInTrigger" />
1514
</rule>
1615
<rule ref="category/apex/codestyle.xml">

config/scratch-orgs/experience-cloud-scratch-def.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"orgName": "Nebula Logger - Experience Cloud Scratch Org",
33
"edition": "Enterprise",
44
"hasSampleData": true,
5-
"country": "US",
6-
"language": "en_US",
5+
"country": "ES",
6+
"language": "es",
77
"features": ["Communities"],
88
"settings": {
99
"chatterSettings": {
@@ -12,6 +12,9 @@
1212
"communitiesSettings": {
1313
"enableNetworksEnabled": true
1414
},
15+
"experienceBundleSettings": {
16+
"enableExperienceBundleMetadata": true
17+
},
1518
"userManagementSettings": {
1619
"enableEnhancedPermsetMgmt": true,
1720
"enableEnhancedProfileMgmt": true,

docs/apex/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ Manages mass deleting `Log__c` records that have been selected by a user on a `L
7676

7777
Abstract class used by trigger handlers for shared logic
7878

79+
### [LoggerSObjectMetadata](log-management/LoggerSObjectMetadata)
80+
81+
Provides details to LWCs about Logger&apos;s `SObjects`, using `@AuraEnabled` properties
82+
7983
### [LoggerSettingsController](log-management/LoggerSettingsController)
8084

8185
Controller class for lwc `loggerSettings`, used to manage records in `LoggerSettings__c`
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
layout: default
3+
---
4+
5+
## LoggerSObjectMetadata class
6+
7+
Provides details to LWCs about Logger&apos;s `SObjects`, using `@AuraEnabled` properties
8+
9+
---
10+
11+
### Methods
12+
13+
#### `getLogEntryEventSchema()``SObjectSchema`
14+
15+
Provides schema details about the the platform event object `LogEntryEvent__e`
16+
17+
##### Return
18+
19+
**Type**
20+
21+
SObjectSchema
22+
23+
**Description**
24+
25+
An instance of `LoggerSObjectMetadata.SObjectSchema` for the platform event `LogEntryEvent__e`
26+
27+
#### `getLoggerSettingsSchema()``SObjectSchema`
28+
29+
Provides schema details about the the custom settings object `LoggerSettings__c`
30+
31+
##### Return
32+
33+
**Type**
34+
35+
SObjectSchema
36+
37+
**Description**
38+
39+
An instance of `LoggerSObjectMetadata.SObjectSchema` for the platform event `LoggerSettings__c`
40+
41+
---
42+
43+
### Inner Classes
44+
45+
#### LoggerSObjectMetadata.FieldSchema class
46+
47+
Inner class for `SObjectField` details to LWCs, using `@AuraEnabled` properties
48+
49+
---
50+
51+
##### Properties
52+
53+
###### `apiName``String`
54+
55+
###### `inlineHelpText``String`
56+
57+
###### `label``String`
58+
59+
###### `localApiName``String`
60+
61+
###### `type``String`
62+
63+
---
64+
65+
#### LoggerSObjectMetadata.SObjectSchema class
66+
67+
Inner class for `SObject` details to LWCs, using `@AuraEnabled` properties
68+
69+
---
70+
71+
##### Properties
72+
73+
###### `apiName``String`
74+
75+
###### `fields``Map<String, FieldSchema>`
76+
77+
###### `label``String`
78+
79+
###### `labelPlural``String`
80+
81+
###### `localApiName``String`
82+
83+
###### `namespacePrefix``String`
84+
85+
---

docs/apex/logger-engine/Logger.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3244,6 +3244,20 @@ SaveMethod
32443244

32453245
The enum value of Logger.SaveMethod to use for any calls to saveLog() in the current transaction
32463246

3247+
#### `getScenario()``String`
3248+
3249+
Returns the scenario name for the current transaction - this is stored in `LogEntryEvent__e.Scenario__c` and `Log__c.Scenario__c`, and can be used to filter &amp; group logs
3250+
3251+
##### Return
3252+
3253+
**Type**
3254+
3255+
String
3256+
3257+
**Description**
3258+
3259+
The value currently set as the current transaction&apos;s scenario
3260+
32473261
#### `getTransactionId()``String`
32483262

32493263
Returns the unique ID for a particular transaction, stored in Log**c.TransactionId**c

0 commit comments

Comments
 (0)