Please help me to resolve the issue I am facing. ( Log Out /  You’ll need to automate the maintenance requests, synchronize the inventory management, and achieve adequate code coverage. Superbadge Apex Specialist Full Solutions. Continuing my quest with trailhead #SeizetheTrail , the last one in my list is the Advanced Apex Specialist Superbadge.. Since this class is implementing the queueable interface, you may want to wait to ensure that it has processed successfully. Hi Rangers , Time to move forward with step 2, 1. You need to update Salesforce data during off hours (at 1:00 AM PST). Go to file Code Clone HTTPS GitHub CLI Use Git or checkout with SVN using the web URL. Work fast with our official CLI. Disclaimer: this is only one way to solve the challenge, and is not meant to be a full solution. Apex Specialist - Superbadge - Challenge 3: Schedule synchronization I'm working on the Apex Specialist Superbadge I was able to complete Challenge 2: Implement an Apex class (called WarehouseCalloutService) that implements the queueable interface and makes a callout to the external service used for warehouse inventory management. @future(callout=true)public static void runWarehouseEquipmentSync(){, if(response.getStatusCode()==200){//System.debug(‘size of equipment — ‘+equipmentlist.size());List updateEquipmentlist=getProductlist(response);if(updateEquipmentlist.size() > 0){insert new List(updateEquipmentlist);}}}, public static List getProductlist(HttpResponse response){, List externalEquipment = (List) JSON.deserializeUntyped(response.getBody());List equipmentlist=new List();//System.debug(‘size of result’+externalEquipment.size());for (Object externalEquipment1: externalEquipment) {Map data = (Map)externalEquipment1;//system.debug(externalEquipment1);//system.debug(data+’===’+data.get(‘cost’));Product2 equipment=new Product2();//equipment.Id =(String)data.get(‘_id’);equipment.Cost__c=(Integer)data.get(‘cost’);equipment.Lifespan_Months__c =(Integer)data.get(‘lifespan’);equipment.Maintenance_Cycle__c =(Integer)data.get(‘maintenanceperiod’);equipment.Name =(String)data.get(‘name’);equipment.Current_Inventory__c =(Integer)data.get(‘quantity’);equipment.Replacement_Part__c =(Boolean)data.get(‘replacement’);equipment.Warehouse_SKU__c=(String)data.get(‘sku’);equipmentlist.add(equipment);}return equipmentlist;}, public static HttpResponse getrespond(){Http http=new Http();HttpRequest request=new HttpRequest();request.setEndpoint(WAREHOUSE_URL);request.setMethod(‘GET’);HttpResponse res=Http.send(request);return res;}}, global class WarehouseSyncSchedule implements Schedulable{// implement scheduled code hereglobal void execute (SchedulableContext sc){, WarehouseCalloutService.runWarehouseEquipmentSync();//optional this can be done by debug modeString sch = ’00 00 01 * * ?’;//on 1 pmSystem.schedule(‘WarehouseSyncScheduleTest’, sch, new WarehouseSyncSchedule());}}, @isTestpublic class MaintenanceRequestTest {, @isTest static void testMaintenanceRequest(){, List maintenanceList=new List();List maintenanceListAfterClosed=new List();Vehicle__c vehicle=new Vehicle__c(Name=’tata sumo’,Air_Conditioner__c=true,Model__c=’23Test’);insert vehicle;Product2 equipment=new Product2(Name=’tire’,Cost__c=100,Current_Inventory__c =10,Replacement_Part__c=true,Warehouse_SKU__c =’test’,Lifespan_Months__c =10,Maintenance_Cycle__c=10);insert equipment;for(Integer i=1;i<=300;i++){Case maintenance=new Case(Subject=’Test subject’+i,Type=’Routine Maintenance’+i,Status=’New’+i,Origin=’Phone’+i,Equipment__c=equipment.Id,Vehicle__c=vehicle.Id);maintenanceList.add(maintenance);}insert maintenanceList;// system.assertEquals(300, maintenanceList.size());for(Case caseupdate:maintenanceList){caseupdate.Status=’Closed’;caseupdate.Type=’Routine Maintenance’;caseupdate.Date_Due__c=date.Today().addDays(Integer.valueOf(equipment.Maintenance_Cycle__c));maintenanceListAfterClosed.add(caseupdate);}Test.startTest();//UPDATE maintenanceListAfterClosed;//Bulk insert updateDatabase.SaveResult[] updatequipment = Database.update(maintenanceListAfterClosed);Test.stopTest();for(Database.SaveResult sa:updatequipment){System.assert(sa.isSuccess());}}}, @isTestglobal class WarehouseCalloutServiceMock implements HttpCalloutMock {// implement http mock callout//Mock responce created to test the call outglobal HttpResponse respond(HttpRequest request){System.assertEquals(‘https://th-superbadge-apex.herokuapp.com/equipment', request.getEndpoint());System.assertEquals(‘GET’, request.getMethod());HttpResponse response = new HttpResponse();response.setHeader(‘Content-Type’, ‘application/json’);response.setBody(‘[{“_id”:”55d66226726b611100aaf741″,”replacement”:false,”quantity”:5,”name”:”Generator 1000 kW”,”maintenanceperiod”:365,”lifespan”:120,”cost”:5000,”sku”:”100003″}]’);response.setStatusCode(200);return response;}}, @isTestprivate class WarehouseCalloutServiceTest {// implement your mock callout test here@isTest static void TestWarehouseCalloutService() {Test.startTest();//mock respoonseTest.setMock(HttpCalloutMock.class, new WarehouseCalloutServiceMock());WarehouseCalloutService.runWarehouseEquipmentSync();Test.stopTest();}}, @isTest static void WarehousescheduleTest(){. Step 3 requires us to schedule our job during off hours: Although HowWeRoll is an international company, the remote offices follow the lead of the HQ’s work schedule. Advanced Apex Specialist Challenge 2. Beyond inventory, you also ensure that other potential warehouse changes carry over to Salesforce. ~6 hrs +6,000 points Superbadge Lightning Experience Reports & Dashboards Specialist Design powerful reports and an eye-catching dashboard to shine a light on your data. I got here my code trigger MaintenanceRequest on Case (before update, Fill in your details below or click an icon to log in: You are commenting using your WordPress.com account. Lastly, we must create test classes with 100% coverage to make sure that our code works and covers positive and negative test cases. Get Started with Apex Unit Tests Trailhead – How to write a test class in Apex. and would like to work through the solution with a few hints for the tricky parts. In the new challenge, it is using the apex method updateBoatList to update the server side instead of the original approach. In the new challenge, it is using the apex method updateBoatList to update the server side instead of the original approach. Next, we must synchronize our inventory data with an external system: Write a class that makes a REST callout to an external warehouse system to get a list of equipment that needs to be updated. This new request’s Type should be set as Routine Maintenance. Click the + button to open a folder until you see file icons and "helpAStranger" and "hugYourMother." Hi, I am trying to update orderTrigger on challenge 2, and I am getting below error: Please find my trigger and helper class below. Automate record creation using Apex triggers; Synchronize Salesforce data with an external system using asynchronous REST callouts; Schedule synchronization using Apex code; Test automation logic to confirm Apex trigger side effects; Test integration logic using callout mocks Test.setMock(HttpCalloutMock.class, new WarehouseCalloutServiceMock()); String jobID=System.schedule(‘Warehouse Time To Schedule to Test’, scheduleTime, new WarehouseSyncSchedule()); //Contains schedule information for a scheduled job. Categories Superbadges 42 Comments. Change ), You are commenting using your Twitter account. The other challenges were easy to complete. Is running the test critical to pass step 2? Superbadges are proof of worthiness! the Apex Specialist SuperBadge challenges. Thank YOU for watching !Hey guys, today we will check whats up with Apex Specialist Superbadge and solve the first step of it. Therefore, all maintenance requests are processed during HQ’s normal business hours. Apex Code Development (82640) General Development (52340) Visualforce Development (36115) APIs and Integration (14629) Lightning (13325) Trailhead (10773) Formulas & Validation Rules Discussion (9976) Other Salesforce Applications (7375) Jobs Board (6580) Force.com Sites & Site.com (4568) Mobile (2526) Java Development (3850).NET Development (3500) Security (2945) Mobile (2526) … Learn how your comment data is processed. Trailhead: Apex Specialist Superbadge by Patrick Connelly posted on June 06, 2016 Salesforce has released a new section under Trailhead called Superbadges , and they’re pretty awesome. Challenge 1 Challenge 1 requires a fair amount of declarative admin work to get the objects and components in place to allow you to test in the UI (you could probably write the code without it but it's important to test in the… Hello, and welcome to Another Salesforce Blog! Add a Test Class – Developer Guide documentation on how to test a trigger and handler class. Please help me to resolve the issue I am facing. Power up your sales reps with a super-charged interface and process automation. . Contribute to yongabyte/Apex-Specialist-Superbadge development by creating an account on GitHub. Any help would be highly appreciated. Hopefully this will be helpful to … Thanks, Tim. Salesforce Journey. Thank YOU for watching !If you learned something from this video, consider subscribing, please! The hardest challenge was to complete the Trigger business rules in the first challenge. Process Automation SuperBadge Part 2: 1. ApolloEagle / apex-specialist-superbadge. Watch 1 Star 0 Fork 1 0 stars 1 fork Star Watch Code; Issues 0; Pull requests 0; Actions; Projects 0; Security; Insights; master. I have created my WarehouseCalloutService apex class and it seems to match how others have created their class. This project implements (and passes!) Lightning Experience Specialist. This site uses Akismet to reduce spam. Mit dem Advanced Apex Specialist Superbadge bestätigt Salesforce dem Nutzer die Fertigkeit komplexe Apex- und Visualforce Programmierkenntnisse in eine Geschäftslogik zu implementieren. If multiple work parts are used in the maintenance request, choose the shortest maintenance cycle to define the service date. Use the warehouse SKU as the external ID to identify which equipment records to update within Salesforce. We will consider this thread as closed. ( Log Out /  This superbadge focuses on automating the support and maintenance requests of the HowWeRoll RV business. Superbadge Business Administration Specialist Brighten up a new business unit with the Salesforce tools the team needs to succeed. We will consider this thread as closed. 12 時間 +5,500 ポイント Superbadge Make sure that you run this class at least once before attempting this challenge. Issues with Trailhead Superbadge "Apex Specialist" Hello, For this superbadge in the given entity relation diagram there is no connection that depicts the direct relation between Maintenance Request (case) and Equipment (Product). Salesforce Apex and VF PMD Integration with Eclipse 1. Showcase your mastery of Apex and Aura components by building a sophisticated app. About. This superbadge will judge your no-code skills in creating App and unlocking the new functionalities. Superbadge Apex Specialist looks good on Resume, and they prove worth as well. Thanks, Aishwarya Trailhead Help Salesforce: Trailhead Apex Specialist Super Badge test class errorHelpful? Per the business requirements: When an existing maintenance request of type Repair or Routine Maintenance is Closed, you create a new maintenance request for a future routine checkup. I pin my code sample here. apex specialist superbadge challege 2. Add to Trailmix. Here is a repository with the whole challenge completed: The details, requirement & Use Case is provided at the Trailhead website Superbadge Apex Specialist. ~12 horas +5,500 puntos Superbadge To Earn This Superbadge, you have to unlock the specified modules and project. Unsere zertifizierten Mitarbeiter sind nach Superbadge Hands-On Challenges bereit unseren Kunden umfassende Apex Codes zu erstellen. Test Class – Developer Guide documentation regarding test classes. Rethink Trigger Logic with Apex Switch – I opted to use a Switch statement so that this code will be easily understood and easy to build on. Recent Comments. Managing Basic Data Loads Using Dataloader CLI, Setting Up a Chromebook for Salesforce Development, https://trailhead.salesforce.com/content/learn/superbadges/superbadge_apex, Schedule Jobs Using the Apex Scheduler Trailhead, Get Started with Apex Unit Tests Trailhead. Apex Triggers; Asynchronous Apex (Future & Schedule Apex) Apex Integration ( Rest Api) Apex Testing (Rest Api Testing) Prerequisites. Make sure that you run this class at least once before attempting this challenge. Step 1 — Go through the Apex Specialist Use-Case,Business Requirement And Schema Diagram of the Story, Step 2 -Create a New Trail Head Playground so That there will not be any Problem while Going through the apex code, Step 3 -To Start the apex challenge Install this unmanaged package after that go through the Standard object and the custom object details in your org so that you might get understand the basic of the Requirement, Step 4 — you all have the apex class made while installing unmanaged package, a. Update the following below code in the MaintenanceRequest trigger, trigger MaintenanceRequest on Case (before update, after update) {, // call MaintenanceRequestHelper.updateWorkOrders. Get Started with Apex Unit Tests Trailhead – How to write a test class in Apex.Add a Test Class – Developer Guide documentation on how to test a trigger and handler class.Test Class – Developer Guide documentation regarding test classes. ApolloEagle / apex-specialist-superbadge. The challenge is expecting the due date to be calculated using the maintenance cycle defined on the related equipment records. Recent Comments. The only changes you need to make to the data schema are renaming the standard objects or modifying standard fields per the Entity Diagram. It took me longer than 12 hours, but I completed the Apex Specialist Superbadge. Apex Specialist Superbadge Checklist While going through the Apex Specialist superbadge, I created a checklist of the requirements so I could check my code against it. Values; Apex Specialist Superbadge Checklist. Apex Specialist What You’ll Be Doing to Earn This Superbadge. I made! I just finished the Apex Specialist Superbadge! I pin my code sample here. It took me longer than 12 hours, but I completed the Apex Specialist Superbadge. Therefore, you need to calculate and set the next due date using the maintenance cycle defined on the related work part records. Setup>>> Search in quick find box >>> Remote site settings >>> New. My solutions for the challenge. Another aspect about parts is they all have different lifespans. Coming up with Salesforce solutions so you don't have to. Make sure that you run this class at least once before attempting this challenge. superbadge step 5,step 2,step 6,step 1,step 7,step 3,step 4,process automation specialist automate leads automate accounts approval process Since I see some folks are having issues passing the challenge – thought of putting the configuration and code developed for the same. While going through the Apex Specialist superbadge, I created a checklist of the requirements so I … Apex Specialist SuperBadge. Apex Specialist. the Apex Specialist SuperBadge challenges. Make sure that you run this class at least once before attempting this challenge. Here I will be posting solutions to problems that I couldn’t find an answer to in hopes of helping those who find themselves stuck when using the Salesforce platform. It will use the same vehicle and service the same piece of equipment, and it will be scheduled a certain number of days after the closed request based on the lifespan of the equipment. Hi rangers, I'm excited to share my new learning about super-specialist badge of Apex. This package contains all schema and shells for Apex logic needed to complete this challenge. ~12 hrs +5,500 points Superbadge CronTrigger a=[SELECT Id FROM CronTrigger where NextFireTime > today]; System.assertEquals(jobID, a.Id,’Schedule ‘); Originally published at https://shivshankarsfdc.com on July 29, 2019. 31 January 2021 6 June 2020 by Nitin Raj. Die Zertifizierung ist im Vergütungspaket der aquilliance GmbH verankert und wesentlicher Bestandteil unserer Karrierepfade zum Salesforce Experten. Apex Specialist Superbadge Walkthrough. Skip to main content Search This Blog Salesforce Ranger Apex Specialist - Challenge 2 Get link; Facebook; Twitter; Pinterest; Email; Other Apps ; July 25, 2020 Synchronize Salesforce data with an external system. Apex Specialist SuperBadge 5.