Trailhead

Superbadge – Apex Specialist

I have completed the Apex Specialist Superbadge recently and have got 5000 points. Since I see some folks are having issues passing the challenge – thought of putting the configuration and code developed for the same. The details, requirement & Use Case is provided at the Trailhead website Superbadge Apex Specialist. I assume that since you are here, you are already familiar with the Force.com platform and Salesforce configuration basics, so I am not going into the details.

Automate Maintenance Requests

a) Created trigger – ‘MaintenanceRequest‘, trigger helper class – ‘MaintenanceRequestHelper‘ and the test class ‘MaintenanceRequestTest‘ as below:

Synchronize Inventory Management

b) Created a Remote Site Settings

c) Create classes – ‘WarehouseCalloutService‘, ‘WarehouseCalloutServiceMock‘ and ‘WarehouseCalloutServiceTest‘ as below:

d) Created classes – ‘WarehouseSyncSchedule‘ and ‘WarehouseSyncScheduleTest‘ as below. Also scheduled the job to run off-hours as per the requirement.

Feel Free to provide your valuable comments or point out any issues or scope of improvement in the above post.