Align.ly Beacon has the ability to customize the Platform Event Batch Size to optimize how Align.ly Beacon processes Platform Events.
Turning on this feature is a two step process...
Step #1: Turn on setting in Align.ly Beacon's Global Settings
- Go to "Align.ly Beacon" using the App Launcher in Salesforce
- Click on the "Global Settings" tab
- Toggle "Customize Platform Event Batch Size" to Active
- Enter 40 for the "Platform Event Batch Size"
- Click "Save"
Step #2: Configure CustomPlatformEventSubscriberConfig records using the Developer Console
- In the Developer Console, go to the Query Editor and run the following query: SELECT Id, Name FROM ApexTrigger WHERE Name = 'ActionProcessingNeededTrigger'
- Record the Action Trigger Id as we will use it later
- In the Developer Console, go to the Query Editor and run the following query: SELECT Id, Name FROM ApexTrigger WHERE Name = 'CMProcessingNeededTrigger'
- Record the Campaign Member Trigger Id as we will use it later
- In the Developer Console, go to the Query Editor and run the following query: SELECT Id, Name FROM User WHERE Name = 'Automated Process'
- Record the User Id as we will use it later
- In the Developer Console, go to the Query Editor, check "Use Tooling API" next to the "Execute" button and run the following query: SELECT Id, DeveloperName, MasterLabel, PlatformEventConsumerId, UserId, BatchSize FROM PlatformEventSubscriberConfig
- Click "Insert Row"
- Configure the row with the following data:
- DeveloperName: ActionPlatformEvent
- MasterLabel: ActionPlatformEvent
- PlatformEventConsumerId: Action Trigger Id from Step #1 above
- UserId: Id from Step #3 above
- BatchSize: 40
- Click "Insert Row"
- Configure the row with the following data:
- DeveloperName: CampaignMemberPlatformEvent
- MasterLabel: CampaignMemberPlatformEvent
- PlatformEventConsumerId: Camapign Member Trigger Id from Step #2 above
- UserId: Id from Step #3 above
- BatchSize: 40
- Click "Save Rows"
That is all! Your Platform Events will now run in batches and processes more efficiently.