Categories
Apex Salesforce

Using Platform Events with Queueable Apex

Scenario:- How to call Queueable Apex inside platform eventsĀ  Step1:- Have a button on SFDC UI to call the “Apex Handler” Step2:- “Apex Handler” will call Platform Event //calling PE with the required params Demo_Platform_Event__e peObj = new Demo_Platform_Event__e( EndPoint_Url__c = endPointUrl ); Database.SaveResult sr = EventBus.publish(peObj); if (sr.isSuccess()) { System.debug(‘Successfully published Demo_Platform_Event__e Event.’); } […]

Categories
Apex Salesforce

Apex Superbadge (part-1)

Scenario:- Automate record creation Install the unmanaged package for the schema and stubs for Apex classes and triggers. Rename cases and products to match the HowWeRoll schema, and assign all profiles to the custom HowWeRoll page layouts for those objects. Use the included package content to automatically create a Routine Maintenance request every time a […]