This is a customer module for ACME bank demo project
-
Authorize your hub org and provide it with an alias
sfdx auth:web:login -a myhuborg
-
Clone the repository:
git clone https://github.com/manisfdcsfdx/acme-bank-customer-module.git cd acme-bank-customer-module
-
Create a scratch org and provide it with an alias
sfdx force:org:create -s -f config/project-scratch-def.json -a acme -v myhuborg
-
Install the app to your scratch org:
sfdx force:package:install -p [email protected] -w 30 -r
-
Assign the ACME permission set to the default user:
sfdx force:user:permset:assign -n ACME
-
Open the scratch org:
sfdx force:org:open
-
In App Launcher, select the ACME app.
-
Authorize your hub org and provide it with an alias
sfdx auth:web:login -a myhuborg
-
Clone the repository:
git clone https://github.com/manisfdcsfdx/acme-bank-customer-module cd acme-bank-customer-module
-
Create a scratch org and provide it with an alias
sfdx force:org:create -s -f config/project-scratch-def.json -a acme -v myhuborg
-
Push the app to your scratch org:
sfdx force:source:push
-
Assign the ACME permission set to the default user:
sfdx force:user:permset:assign -n ACME
-
Open the scratch org:
sfdx force:org:open
-
In App Launcher, select the ACME app.
- Create a Test user with with Readonly profile
- Assign the ACME permission set to the test user
- Login as test user
- In App Launcher, select the ACME app.
- Create Account and Financial Account
- Use workbench to Subscribe CustomerDataSync__e platform and moniter the Account creation events
- Test apex rest service
/services/apexrest/accounttransaction/
using below sample
{
"abid": "<abid from any newly created Account>",
"accountNumber": <account number from newly created Financial Account with above abid account>,
"amount": 125.68,
"currency": "AUD",
"date": "2020/01/01",
"merchantABN": 12345678912,
"merchantBSB": 123456,
"merchantName": "Beau Flowers",
"time": "17:32:25",
"type": "credit"
}
- Person accounts Enabled to store customer details as a person
- ABID id is populated on Account creation
- CustomerDataSync__e platform event is published on Account creation
- Account number populated on Financial account creation
- Account Balance in financial account is calculated on every financial transaction
- An apex rest service
/services/apexrest/accounttransaction/
is exposed for a external system to notify salesforce on financial transaction