contact.Email = test@test.com; // ToDo: Call MaintenanceRequestHelper.updateWorkOrders } This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. where Maintenance_Request__c = :emptyReq.Id]; system.assert(workPart != null); newEMIRecord.Equipment__c=EMIRecord.Equipment__c; Step 1. insert equipment; String joBID= System.schedule(TestScheduleJob, CRON_EXP, new WarehouseSyncSchedule()); if(MRRecord.Type==Routine Maintenance){ Lets grow together. This is probably the simplest of all the steps.. update theTestDataFactory class to handle the key requirements given.. For Challenge 1 I am getting error for some of the fields that they doesnt exist like Vehicle__c, Equipment__c, Due_Date__c. Review the data schema in your modified Salesforce org as you read the detailed requirements below. Hi Admin, following up on this comment. { For any superbadge, you will have to install a package before starting. } }. } List EMIList = new List([SELECT Maintenance_Request__c,Maintenance_Request__r.Vehicle__c,Equipment__c, Equipment__r.Maintenance_Cycle__c,Quantity__c FROM Equipment_Maintenance_Item__c WHERE Maintenance_Request__r.Vehicle__c IN: newRoutineMaintenanceVehicleRecordIDList]); mapCases.get(oldCaseId).add(item); insert equipment; List newCases = new List(); How can we prove that the supernatural or paranormal doesn't exist? We could not find the class MaintenanceRequestHelperTest using assertions in the unit tests. }, Challenge 2 : Synchronize Salesforce data with an external system newEMIRecord.Maintenance_Request__c=MRRecord.ID; oldRequestIds.add(req.Id); newCase.Subject = 'Test Subject'; emiList = [Select id,name,Maintenance_Request__c,Equipment__r.Maintenance_Cycle__c from Equipment_Maintenance_Item__c where Maintenance_Request__c IN: caseIdSet]; Map leastValueMap = new Map(); Closing a Maintenance Request of type Routine Maintenance did not create of a new . Wait for a minute and run it twice maybe before checking challenges. MaintenanceRequestTest.CreateData( 5,2,2,Repair); newItem.Equipment__c = equipmentId; @TestSetup Connect and share knowledge within a single location that is structured and easy to search. newCases.put(oneCase.Id, newRoutineCase); The author also has a YouTube channel that goes over key concepts which may be helpful: SFDC YouTube Channel Best of luck! Use the naming conventions specified in the requirements document to ensure a successful deployment. Are you sure you want to create this branch? insert vehicle; } list equipmentList = new list(); For getting more knowledge I'll suggest go to Apex Hours YouTube channel and check-out the developer series. which certification i should do to expertise myself in that domain, Hi there Neha ! Use integration and business logic to push your Apex coding skills to the limit with the Apex Specialist superbadge. System.debug(*** Total cases (expected 600): +numberAllCases); Choose the Tab (orObject) you want torenameand clickEdit. Asking for help, clarification, or responding to other answers. Try it. update caseToUpdate; Learn directly from Salesforce experts. Hi, This link helped me, so I modified the code like this: Thanks for contributing an answer to Stack Overflow! MaintenanceRequestHelper.updateWorkOrders(); b. Hard times, Challenge 1 : Automate record creation insert somethingToUpdate; Equipment_Maintenance_Item__c workP = createWorkPart(equipmentId,somethingToUpdate.id); https://salesforce.stackexchange.com/questions/336871/apex-specialist-challenge-1-productid-null/341363#341363. insert vehicle; I will try and review that shortly and update the required. } Also various YouTube videos and blogs exist. tmpCases.add(newCases.get(oldId)); Apex @future What am I doing wrong here in the PlotLegends specification? req.Status = CLOSED; It looks good on a resume to be a contributor. insert newItems; ~1 hr 30 mins +1,500 points Module Apex Testing Write robust code by executing Apex unit tests. Challenge 4: both negative and bulk run successfully but not positive test case. I'm working on the Apex Specialist super badge on the Salesforce Trailhead. system.debug('newCaseList '+newCaseList); workPartList.add(createWorkPart(equipmentList.get(i).id, requestList.get(i).id)); Apex SpecialistSuperbadge,Challenge-1 : Automate Record Creation,Challenge-2 : Synchronize Salesforce data with an external system. upsert newProducts; Trailhead solution for Apex Specialist superbadge Challenge 1 - MaintenanceRequest.trigger and MaintenanceRequestHelper.class Challenge 2 - WarehouseCalloutService.class Challenge 3 - WarehouseSyncSchedule.class Challenge 4 - MaintenanceHelperTest.class Challenge 5 - WarehouseCalloutServiceMock.class and WarehouseCalloutServiceTest.class If you are facing any hurdles to complete the challenge, just go through the code. }, PRIVATE STATIC Case createMaintenanceRequest(id vehicleId, id equipmentId){ vehicleToEquipmentMap.put(MRRecord.Vehicle__c,EquipmentIDListUpdate); static private Case createNewMaintenanceCase(Id oldCaseId,Id vehicle, Date newDate) { Thats a technical error. update emptyReq; for(Id oldId : oldIdCases){ list oldRequestIds = new list(); for(integer i = 0; i < 300; i++){ Trailblazer CommunityTrailhead, ApexSalesforce Developer, Trailhead vol2. Tips, ApexWeb APIApexDML1, Trigger.new sObject List
Kristen Mckeehan Carroll Elevator,
Ej20k Vs Ej207,
Compatibility Test Birthday,
Articles A