This package contains a set of tools to extend standard Data360 capabilities and better manage / monitor / audit Data360 configuration and data.
For the time being, it only provides a query tool extending standard Query Editor feature to execute custom SQL queries, apply data masking, reformat JSON values (especially found in AgentForce logs) and export / copy data.
These components were built as contributions or examples for former and ongoing Advisory assignments by Pierre-Emmanuel Gros.
ℹ️ Additional Data360 utilities may also be found in the PEG_LIST_DC repository.
This repository contains a whole set of tools dedicated to Data360 management:
- the sfpegData360QueryToolCmp LWC component enables to run any SQL query on Data 360 from a Lightning App page and to explore, filter, inspect, copy or download its results, with server-side data masking of sensitive values
ℹ️ As the ConnectApi Apex class induces multiple implicit dependencies requiring Data Cloud specific features on scratch Orgs, it is currently impossible to distribute the content of this repository as an unlocked package.
The following two options are therefore available for package installation:
- Git and SF CLI Deployment
- Quick Direct Deploy button
To retrieve the SFDX project, you may simply execute a git clone from the GitHub repository.
git clone [email protected]:pegros/PEG_DC.git
Via SFDX you may then deploy it on you Org
sfdx force:source:deploy -u <yourOrgAlias> -w 10 --verbose -p force-app
For a quick and easy deployment, you may alternatively use the following deploy button leveraging the GitHub Salesforce Deploy Tool implemented by Andrew Fawcett.
To deploy only the whole package to your Org, you may use the following button.
ℹ️ As this repository is not distributed as unlocked package, there is no real package version. This section however summarizes the timeline and contents of the main evolutions made.
ℹ️ First versions included metadata now moved to the PEG_LIST_DC package to remove dependencies with the PEG_LIST package.
First version of the package.
- Transfer of the sfpegDataCloudQueries_SVC Apex class from the PEG_LIST package to the PEG_DC package for easier deployment
- Addition of the sfpegPromptQueries_SVC and sfpegPrompts_SVC Apex classes
Changes done:
- Added new
ESC_SINGLE(((...)))rework function in the sfpegDataCloudQueries_SVC Apex class to handle cases where single quotes need to be escaped properly in Data Cloud SQL queries (e.g. for Semantic Search).
Changes done:
- Addition of the sfpegDataCloudQueriesV3_SVC Apex class, new variant of the sfpegDataCloudQueries_SVC Apex class relying on the new sfsqlquery Apex framework instead of ConnectApi.CdpQuery (synchronous queries only).
- Addition of the sfpegData360QueryToolCmp standalone Data 360 SQL query tool (with its sfpegData360Query_SVC Apex controller, data masking rules and permission sets).
- Move of PEG_LIST specific metadata from this PEG_DC into this PEG_LIST_DC repository to segregate deployment dependencies.
