Flow Name | Object | Automation | Trigger Condition | DML |
Create/Update Student Records Automation | Student Record | Record Triggered flow (before create/update) | If Educational Institution’s PosiEd State = Subscriber,
If Educational Institution’s PosiEd State = Publisher, |
|
| Contact | Record Triggered flow (before update) | If Contact is updated | |
Automations to populate Staff from Employee Role Record and vice versa | Employee Role | Record Triggered flow (before create/before update) | If Educational Institution’s PosiEd State = Subscriber, If Employee Role is created If Employee Role is updated
| If create, A new User is created where First Name = Employee Role’s First Name Last Name = Employee Role’s Last Name Phone = Employee Role’s Phone Email = Employee Role’s Email Alias = Employee Role’s Display Name Username = Employee Role’s Email Nickname = Employee Role’s Preferred Name Title = Employee Role’s Salutation User License = Salesforce Profile = Profile entered and specified in the Default Profile ID field of the custom settings
Update Employee Role’s User = new User A new Person Account is created where First Name = Employee Role’s First Name Last Name = Employee Role’s Last Name Phone = Employee Role’s Phone Preferred Name = Employee Role’s Gender = Employee Role’s Gender (using PosiEd Value Mapping) Email = Employee Role’s Email Primary Educational Institution Staff Status = Employee Role’s Status Staff Id = Employee Role’s Staff Id
Update Employee Role’s Employee = new Person Account’s Contact Update Employee Role’s Primary = True
If update, If Employee Role’s User is populated and Primary = true, User is updated where First Name = Employee Role’s First Name Last Name = Employee Role’s Last Name Phone = Employee Role’s Phone Email = Employee Role’s Email Alias = Employee Role’s Display Name Username = Employee Role’s Email Nickname = Employee Role’s Preferred Name Title = Employee Role’s Salutation
If Employee Role’s User is empty, If Employee Role’s Employee field is populated and Primary = true,
|
If Educational Institution’s PosiEd State = Publisher, | Based from Employee Role’s Employee, update Person account where |
Automation when Person Account is Updated | Account (Person Account) | Record Triggered flow | If Account (Person Account) is updated | All related Employee Roles where Educational Institution’s PosiEd State = Publisher are updated where First Name = Person Account’s First Name Last Name = Person Account’s Last Name Phone = Person Account’s Phone Preferred Name = Person Account’s Preffered Name Gender = Gender (using PosiEd Value Mapping) Email = Person Account’s Email Educational Institution = Primary Educational Institution
|