Skip to content

Commit

Permalink
Release v4.3.0 (#119)
Browse files Browse the repository at this point in the history
* Fixed an issue with record link formulas
When no record ID or record JSON was set, both formulas were incorrectly displaying '<>'

* Updated sfdx-project.json with details for v4.3.0

* Reverted flow classes to not save by default

* Updated folder structure for mgd pkg classes (again)

* Added examples directory with example trigger, flow & process

* Updated name of github action

* Updated build button in README.md
  • Loading branch information
jongpie authored Mar 28, 2021
1 parent 56f1a9e commit bdd3c14
Show file tree
Hide file tree
Showing 22 changed files with 944 additions and 53 deletions.
2 changes: 0 additions & 2 deletions .forceignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
#

package.xml

# LWC configuration files
**/jsconfig.json
**/.eslintrc.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Unique name for this workflow
name: Logger Validation-Only Deployment
name: Logger Deployment

on:
push:
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Nebula Logger for Salesforce
[![Logger Validation-Only Deployment](https://github.com/jongpie/NebulaLogger/actions/workflows/validate.yml/badge.svg)](https://github.com/jongpie/NebulaLogger/actions/workflows/validate.yml)
[![Logger Deployment](https://github.com/jongpie/NebulaLogger/actions/workflows/validate.yml/badge.svg)](https://github.com/jongpie/NebulaLogger/actions/workflows/validate.yml)

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

[![Deploy Unpackaged Metadata](./content/btn-deploy-unmanaged-metadata.png)](https://githubsfdeploy.herokuapp.com)
[![Install Managed Package](./content/btn-install-managed-package.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000000Xg4wQAC)
[![Install Managed Package](./content/btn-install-managed-package.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000000YLDLQA4)
[![View Documentation](./content/btn-view-documentation.png)](https://jongpie.github.io/NebulaLogger/)

## Features
Expand Down Expand Up @@ -121,6 +121,7 @@ Within App Builder, admins can add the 'Related Log Entries' lightning web compo
* Field-Level Security - Users will only see the fields within the field set that they have access to

![Related Log Entries](./content/relate-log-entries-lwc.png)

## Deleting Old Logs
Admins can easily delete old logs using 2 methods: list views or Apex batch jobs
### Mass Deleting with List Views
Expand Down
157 changes: 157 additions & 0 deletions examples/flows/Account_Flow_Logger_Example.flow-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<actionCalls>
<description>Logs the account again after the field assignment has made changes to the account</description>
<name>Log_Account_After_Change</name>
<label>Log Account After Change</label>
<locationX>176</locationX>
<locationY>518</locationY>
<actionName>FlowRecordLogEntry</actionName>
<actionType>apex</actionType>
<dataTypeMappings>
<typeName>T__record</typeName>
<typeValue>Account</typeValue>
</dataTypeMappings>
<flowTransactionModel>CurrentTransaction</flowTransactionModel>
<inputParameters>
<name>loggingLevelName</name>
<value>
<stringValue>INFO</stringValue>
</value>
</inputParameters>
<inputParameters>
<name>flowName</name>
<value>
<elementReference>Flow_API_Name</elementReference>
</value>
</inputParameters>
<inputParameters>
<name>message</name>
<value>
<stringValue>Logging account again after Flow made a field update</stringValue>
</value>
</inputParameters>
<inputParameters>
<name>record</name>
<value>
<elementReference>Account_Record</elementReference>
</value>
</inputParameters>
<storeOutputAutomatically>true</storeOutputAutomatically>
</actionCalls>
<actionCalls>
<description>Logs the input account records before any changes are made to the record in this Flow</description>
<name>Log_Account_Before_Changes</name>
<label>Log Account Before Changes</label>
<locationX>176</locationX>
<locationY>158</locationY>
<actionName>FlowRecordLogEntry</actionName>
<actionType>apex</actionType>
<connector>
<targetReference>Update_Account</targetReference>
</connector>
<dataTypeMappings>
<typeName>T__record</typeName>
<typeValue>Account</typeValue>
</dataTypeMappings>
<flowTransactionModel>CurrentTransaction</flowTransactionModel>
<inputParameters>
<name>loggingLevelName</name>
<value>
<stringValue>INFO</stringValue>
</value>
</inputParameters>
<inputParameters>
<name>flowName</name>
<value>
<elementReference>Flow_API_Name</elementReference>
</value>
</inputParameters>
<inputParameters>
<name>message</name>
<value>
<stringValue>Logging account before making changes</stringValue>
</value>
</inputParameters>
<inputParameters>
<name>record</name>
<value>
<elementReference>Account_Record</elementReference>
</value>
</inputParameters>
<storeOutputAutomatically>true</storeOutputAutomatically>
</actionCalls>
<apiVersion>51.0</apiVersion>
<assignments>
<description>An example field update</description>
<name>Update_Account</name>
<label>Update Account</label>
<locationX>176</locationX>
<locationY>278</locationY>
<assignmentItems>
<assignToReference>Account_Record.Phone</assignToReference>
<operator>Assign</operator>
<value>
<stringValue>510-555-1234</stringValue>
</value>
</assignmentItems>
<connector>
<targetReference>Save_Account</targetReference>
</connector>
</assignments>
<constants>
<name>Flow_API_Name</name>
<dataType>String</dataType>
<value>
<stringValue>Account_Process_Logger_Example</stringValue>
</value>
</constants>
<description>An example process to demo logging Account records in Flow</description>
<interviewLabel>Account_Flow_Logger_Example {!$Flow.CurrentDateTime}</interviewLabel>
<label>Account_Flow_Logger_Example</label>
<processMetadataValues>
<name>BuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>CanvasMode</name>
<value>
<stringValue>AUTO_LAYOUT_CANVAS</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>OriginBuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processType>AutoLaunchedFlow</processType>
<recordUpdates>
<name>Save_Account</name>
<label>Save Account</label>
<locationX>176</locationX>
<locationY>398</locationY>
<connector>
<targetReference>Log_Account_After_Change</targetReference>
</connector>
<inputReference>Account_Record</inputReference>
</recordUpdates>
<start>
<locationX>50</locationX>
<locationY>0</locationY>
<connector>
<targetReference>Log_Account_Before_Changes</targetReference>
</connector>
</start>
<status>Active</status>
<variables>
<name>Account_Record</name>
<dataType>SObject</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
<objectType>Account</objectType>
</variables>
</Flow>
Loading

0 comments on commit bdd3c14

Please sign in to comment.