Skip to content

Commit

Permalink
DevHub change and instruction in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiLeGuin committed Feb 22, 2020
1 parent 372d7db commit b436e94
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ To learn how to manipulate unlocked packages, please review [the following Trail

## Step 1: Install the trigger-dependency-injection directory as an unlocked package in an org

- [Follow this link for Sandboxes](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t3X000002VVdhQAG "https://test.salesforce.com/packaging/installPackage.apexp?p0=04t3X000002VVdhQAG")
- [Follow this link for Production environments, Developer Editions and Trailhead Playgrounds](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3X000002VVdhQAG "https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3X000002VVdhQAG")
- [Follow this link for Sandboxes](https://test.salesforce.com/packaging/installPackage.apexp?p0=04tB0000000Oid3IAC "https://test.salesforce.com/packaging/installPackage.apexp?p0=04tB0000000Oid3IAC")
- [Follow this link for Production environments, Developer Editions and Trailhead Playgrounds](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tB0000000Oid3IAC "https://login.salesforce.com/packaging/installPackage.apexp?p0=04tB0000000Oid3IAC")

## Step 2 (for demo purpose only): Create generic triggers to handle all actions on a SObject

Expand Down Expand Up @@ -52,8 +52,8 @@ trigger AccountBeforeDelete on Account (before delete) {

## Step 3 (for demo purpose only): Install the trigger-dependency-injection-test directory as an unlocked package to test a new functionnality that uses the defined previous trigger

- [Follow this link for Sandboxes](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t3X000002VVm2QAG "https://test.salesforce.com/packaging/installPackage.apexp?p0=04t3X000002VVm2QAG")
- [Follow this link for Production environments, Developer Editions and Trailhead Playgrounds](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3X000002VVm2QAG "https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3X000002VVm2QAG")
- [Follow this link for Sandboxes](https://test.salesforce.com/packaging/installPackage.apexp?p0=04tB0000000Oid8IAC "https://test.salesforce.com/packaging/installPackage.apexp?p0=04tB0000000Oid8IAC")
- [Follow this link for Production environments, Developer Editions and Trailhead Playgrounds](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tB0000000Oid8IAC "https://login.salesforce.com/packaging/installPackage.apexp?p0=04tB0000000Oid8IAC")

## Test it yourself!
> IMPORTANT: To test the functionality with a user other than 'System Administrator', do not forget to assign the permission sets to the desired users from other profiles.
Expand All @@ -66,7 +66,7 @@ You can see both packages installed in the org in *Setup → Installed
## Bypass Methods

With the first package, a "BypassedMethods__c" field has been created on the "User" object. A "CallerMockMockingMethod" picklist value already exists, corresponding to a test method covering the "Caller" class from the core package.
If you want to bypass methods for specific users, set the custom metadata's API names as picklist values. For instance, according to the test package:
If you want to bypass methods for specific users, add the picklist field to a user page layout and set the custom metadata's API names as picklist values. For instance, according to the test package:
- CheckAccountRatingDelete
- UpdateAccountDescriptionUpdate
- UpdateAccountRatingInsert
Expand Down
12 changes: 6 additions & 6 deletions sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"path": "trigger-dependency-injection-test",
"default": false,
"package": "Trigger Dependency Injection (TDI) Test",
"versionName": "ver 1.0",
"versionNumber": "1.0.0.NEXT",
"versionName": "ver 0.1",
"versionNumber": "0.1.0.NEXT",
"dependencies": [
{
"package": "Trigger Dependency Injection (TDI)",
Expand All @@ -25,9 +25,9 @@
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "48.0",
"packageAliases": {
"Trigger Dependency Injection (TDI)": "0Ho3X000000XZFWSA4",
"Trigger Dependency Injection (TDI)@1.0.0-1": "04t3X000002VVdhQAG",
"Trigger Dependency Injection (TDI) Test": "0Ho3X000000XZFbSAO",
"Trigger Dependency Injection (TDI) [email protected].0-1": "04t3X000002VVm2QAG"
"Trigger Dependency Injection (TDI)": "0HoB0000000Cb0YKAS",
"Trigger Dependency Injection (TDI) Test": "0HoB0000000Cb0dKAC",
"Trigger Dependency Injection (TDI)@1.0.0-1": "04tB0000000Oid3IAC",
"Trigger Dependency Injection (TDI) Test@0.1.0-1": "04tB0000000Oid8IAC"
}
}

0 comments on commit b436e94

Please sign in to comment.