Salesforce Travel Approval App V2 Configuration Guide
User Manual:
Open the PDF directly: View PDF
.
Page Count: 12
| Download | |
| Open PDF In Browser | View PDF |
Travel Approval App – Configuration
Guide
Outil de déploiement « Etape par Etape » : https://sfdxappwizard.herokuapp.com
Git Repository : https://github.com/cverhaest/sfdx-travelApprovalAPPv2.git
Etape 1 – CREATION DE L’ORG DE DÉVELOPPEMENT (Scratch Org)
•
Remarque : utilisez l’outil de déploiement « Etape par Etape ».
•
Modifier le paramètre de gestion du cache : Setup / Session Settings
o Enable secure and persistent browser caching to improve
performance: ☐ (Décoché)
Page 1
•
Ajouter les langues de traduction : Setup / Translation Settings
o Ajouter « French » & « English »
Page 2
Etape 2 - CREATION DU MODELE DE DONNEES
•
Créer le « Modèle de donnée » : Setup / Object Manager
o Create / Custom Object
§ Object Name: Travel Approval - Demande de voyage
§ Name: Auto Number - TA-{00000}
§ Allow Reports, Activities, Track Field History, Allow In Chatter
Groups
§ Allow Search
§ Add Notes and Attachments related list to default page layout
§ Launch New Custom Tab Wizard after saving this custom
object
o Tab
§ Globe Icon
§ Default On for All Profiles
o Create Custom Fields
§ Approval Status - Statut
• Picklist
• New, Pending, Approved, Rejected - Nouveau, En
attente, Approuvé, Rejeté
• Use first value as default value
§ Travel Date - Date du voyage
• Date
§ Description - Description
• Text Area
§ Travel Destination - Destination
Page 3
§
§
§
• Text
Travel Reason - Raison du voyage
• Picklit
• Internal Meeting, Customer Meeting, Partner Meeting Meeting interne, Meeting client, Meeting partenaire
Travel Cost - Coût du voyage
• Currency (16.2)
Approver Level 1 - Approbateur - Niveau 1
• Lookup / User
• User
•
Création de la « Règle de Validation – Date du voyage ne peut pas être
antérieure à la date du jour » : Setup / Object Manager / Travel Approval /
Validation Rules / New
o Validation Rule Name: Travel_Date_cannot_be_in_the_past
•
Saisie des « Traduction » : Setup / Translate
•
Remarque n°1 : à ce stade, vous pouvez déjà créer des « Demandes de
Voyage », collaborer sur celles-ci, …
•
Remarque n°2 : pour vous faciliter la tâche, utilisez l’outil de déploiement
« Etape par Etape ».
Page 4
Etape 3 – CREATION D’UNE APPLICATION DÉDIÉE
•
Créer une application : Setup / App Manager
o New Lightning App
§ Name: Travel Approval - Demande de voyage
§ Next: Standard Navigation
§ Next
§ Selected Items: Travel Approval
§ Assigned To User Profiles: System Administrator
•
Ajouter le « Path Assistant » à l’écran d’une demande de voyage : Edit Page
o Drag & Drop the « Path Component » to the Page
•
Remarque : pour vous faciliter la tâche, utilisez l’outil de déploiement « Etape
par Etape ».
Page 5
Etape 4 – PROCESSUS AUTOMATISES - PROCESS BUILDER & APPROVAL
PROCESS
•
Approval Process (Pour soumettre pour approbation la demande de voyage) :
Setup / Approval Processes
Manage Approval Processes For: Travel Approval
Create New Approval Process: Use Standard Setup Wizard
o Step1 - Process Name: Travel Approval - Approval Process
o Step 2 - Entry Criteria: “Approval Status” NOT EQUALS TO “Approved”
AND “Approver Level 1” NOT EQUALS TO null
o Step 3 - Administrators OR the currently assigned approver can edit
records during the approval process.
o Step 5
§ Selected Fields: Ajouter “Description”, “Travel Date”, “Travel
Destination”, “Travel Cost”, “Travel Reason”
§ Display approval history information in addition to the fields
selected above
§ Allow approvers to access the approval page only from within
the Salesforce application. (Recommended)
o Step 6 - Specify Initial Submitters: Travel Approval Owner
Page 6
Yes, I'd like to create an approval step now.
Approval Step 1:
o Step 1 - Name: Level 1
o Step 2 - All records should enter this step
o Step 3 - Automatically assign to approver(s): Related User / Approver
Level 1
No, I'll do this later. Take me to the approval process detail page to
review what I've just created.
o Add Initial Submission Actions
§ Field Update
§ Name: Status equals “Pending”
o Add Final Approval Actions
§ Field Update
§ Name: Status equals “Approved”
o Add Final Rejection Actions
§ Field Update
§ Name: Status equals “Rejected”
o Activate
Page 7
•
Process Builder (Pour alimenter le bon approbateur lors de la création d’une
nouvelle demande de voyage et la soumettre pour approbation): Setup /
Process Builder / New
Process Name: Travel Approval - Assign Approver Level 1
The process starts when: A record changes
Object: Travel Approval
Start the process: only when a record is created
Add Criteria
§ Status equals New
o Immediate Action n°1
§ Action type: Update Records
§ Action name: Manager as Approver Level 1
§ Criteria for Updating Records : No criteria—just update the
records!
§ Approval Level 1 equals “Field Reference:
[Travel_Approval__c].Owner:User.ManagerId”
o Immediate Action n°2
§ Action type: Submit for Approval
§ Action name: Submit For Approval
§ Approval Process - Specific Approval Process - “Travel
Approval - Approval Process Travel_Approval_Approval_Process”
o Activate
o
o
o
o
o
Page 8
•
Remarque : pour vous faciliter la tâche, utilisez l’outil de déploiement « Etape
par Etape ».
•
Création d’un utilisateur « Manager » : Setup / User / New
o Firstname: User
o Lastname: Manager
o Email: « Votre adresse email »
o Username: usermanagerXXXXX@example.com
o User License: Salesforce
o Profile: System Administrator
o …
o & lui affecter les Permission Sets
•
Affecter l’utilisateur « Manager » à l’utilisateur courant:
Page 9
Etape 5 – PROCESSUS VISUEL AUTOMATISE – FLOW BUILDER
•
Remarque : pour vous faciliter la tâche, utilisez l’outil de déploiement « Etape
par Etape ».
Page 10
Etape 6 – RAPPORTS & TABLEAU DE BORD
•
Rapports : Reports Tab / New Report
o Report Type: Travel Approvals
•
Dashboard : Dashboards Tab / New Dashboard
•
Remarque : pour vous faciliter la tâche, utilisez l’outil de déploiement « Etape
par Etape ».
Page 11
Etape 7 – DEVELOPPEMENT SUR LA PLATEFORME
•
Remarque : pour vous faciliter la tâche, utilisez l’outil de déploiement « Etape
par Etape ».
Page 12
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf Linearized : No Page Count : 12 PDF Version : 1.4 Title : Microsoft Word - Salesforce Travel Approval App v2 - Configuration Guide.docx Producer : macOS Version 10.14.2 (Build 18C54) Quartz PDFContext Creator : Word Create Date : 2019:02:14 14:21:15Z Modify Date : 2019:02:14 14:21:15ZEXIF Metadata provided by EXIF.tools