I've used following article to create Business process to send push notifications:
https://academy.creatio.com/docs/8.x/no-code-customization/bpm-tools/bpm-process-examples/set-up-push-notifications-for-mobile-users
Goal of Business process is to send Push notifications to mobile app about calendar Activities for Owners:
- Run every 15 minutes (don't know if we can use some Signals based on Activitiy Start time, so decided to run every 15 minutes and check for Activities within next 15 minutes, which is also fine for us)
- So next setting Start and End dates within next 15 minutes interval
-
Then Read Activitiy records (collection)
-
and then Send push notification
- Issue is than I cannot pass Recepient User, as Owner of activity is Contact, but User is expected
So looking for your help:
1) How to pass respective User for collection of records?
Owner is not available for selection
2) Is it possible to send to multiple users (dynamically defined Owner from Read Collection and static Manager defined manually in Business Process)?
3) How to pass Lead_Name (text) or Lead_Status (lookup) to "Push notification text", instead of Lead_ID? ( I know how to handle this with Read single first record, to Read Lead Data and filter by Lead ID, but don't know how to handle such cases for Collection of records)
Huge thanks,
Leo
Like
As far as getting the user for each contact, you could do this by creating another process inbetween the two. Create a subprocess and add parameters for the columns you want to include in the push notification (subject, lead, start, and contact). In this subprocess, you would read System Administration Unit (user) for the contact passed, then pass the values including the user to the Send Push Notification subprocess. In the main process, you'd change things so after reading the activities for the time period as a collection, you'd pass each to this new subprocess, and it would read the user for the contact and call the subprocess to send the push notification.
Ryan
As far as getting the user for each contact, you could do this by creating another process inbetween the two. Create a subprocess and add parameters for the columns you want to include in the push notification (subject, lead, start, and contact). In this subprocess, you would read System Administration Unit (user) for the contact passed, then pass the values including the user to the Send Push Notification subprocess. In the main process, you'd change things so after reading the activities for the time period as a collection, you'd pass each to this new subprocess, and it would read the user for the contact and call the subprocess to send the push notification.
Ryan
it works, huge thanks!
Is it possible to pass 2 or more users to singe Push notification subprocess?
Or should I use similar approach and create a fork (AND) in business process to call Push notification subprocess in case I need to sent the same Push notification to 2 or more persons?
Leonid,
You'd have to call that subprocess twice, once for each user.