Push notifications are messages that can be sent directly to a user's mobile device. Unlike in-app messages, push notifications can appear on a lock screen or in the top section of a mobile device. An app publisher can only send a push notification if the user has their app installed.
Introduction
Create an apex class in salesforce org for push notification.
Click on Gear icon.
2. Click on Developer Console
3. Click on File
4. Click New
5. Click on Apex Class
6. Enter class name PushNotificationServices
7. Click Ok
8. Please contact BPL team for PushNotificationServices class code
Flow Builder comes with much functionality, but sometimes your flow must do more than the default elements allow. In that case, call an Apex class from your flow by using an Apex action.
TODO : Give some context about what is happening in next steps instead of definitiion for Flow Builder
Go to Setup
Search Flows in Quick Find box
Click on Notification Main flow
Open Flow
Drag Action to Flow Builder
6. Seach Invoke Mobile Push Notifications in Search box.
7. Add Label and API Name
8. Enable recordId toggle button
9. Type {!$Record.Id} in input box.
10. Select {!$Record.Id}
11. Enable Source User toggle button
12. Type {!$Record.imblaze__Source_Contact__r.imblaze__ImBlaze_User__c}
13. Select {!$Record.imblaze__Source_Contact__r.imblaze__ImBlaze_User__c}
14. Enable userIds toggle button .
15. Enable UserIds toggle button
16. Type {!$Record.imblaze__User_Contact__r.imblaze__ImBlaze_User__c}
17. Select {!$Record.imblaze__User_Contact__r.imblaze__ImBlaze_User__c}
18. Click Done.
Go to Setup
Search Flows in Quick Find box.
Click on Notification Main Flow.
Connect Internship Start Approved action to new created action.
Note:
Steps for connecting apex action
Click on dot.
2. Click and drag cursor to Apex action.
Repeat Steps 1-4 for below action to connect new created action.
Internship Start Approved
Internship End Approved
Internship Start Denied
Internship Request Advisor Approved
Internship Request Denied Advisor
Repeat Steps 1-4 to connect below decision outcomes with new created action.
Internship Share
Change Status internship End
Attendance off target
Mentor Comment
Mentor Comment Advisor
Start Pending
End Pending
Advisor Reminder
Student Check in reminder
Student Check out reminder
Checkin Alert reminder
Checkout Alert reminder
This flow is implemented to initiate email and mobile push notifications when a record is created in the notification object.
Go to Setup
Search Flows in Quick Find box.
Click on Notification Main Flow
Click on Save As button
5. Add Flow Label.
6. Click Save.
Note:
Save as this flow as New flow.
Activate the New one and Deactivate existing one.
After creating pushnotification class, need to change the connected app name in the code as per the connetec apps created in the instance
Add the step to clone the notification flow