Modified 2 months ago. Making statements based on opinion; back them up with references or personal experience. insert workP; test.startTest(); newItem.Maintenance_Request__c = newCase.Id; listEquipmentMaintenanceItem.add(newItem); Hot Network Questions Applications of super-mathematics to non-super mathematics Resistance against timing attacks of AES candidates How to deal with Hostile Work Environment after attending Employee Workshop The region and polygon don't match. } System.debug(*** Updated cases: +caseToUpdate.size()); Integer numberAllCases = (Integer) [SELECT COUNT(Id) conteggio FROM Case WHERE Date_Reported__c = TODAY][0].get(conteggio); if(!EquipmentIDListUpdate.contains(EMIRecord.Equipment__c)){ for(Id oldId : oldIdCases){ newItems.add(i1); newMRRecord.Vehicle__c = MRRecord.Vehicle__c; Trailheads are good for general understanding of a concept whereas the super badge is a test of that concept in a scenario. Stuck on Superbadge Apex Specialist Step 6? return cs; rev2023.3.3.43278. what objects I have to make all those things..Can anyone please give Stepwise ,clear and simplified solution of the same? ( Automate record creation ), I face this error what can I do please Help me. Case newCase = new Case(); } salesforce - Advanced Apex Specialist - Please ensure that the Select HttpRequest request = new HttpRequest(); CronTrigger is similar to a cron job on UNIX systems. contact.AccountId = acc.Id; // Sync with Warehouse upsert newProducts; }. If u further need help you can join the telegram group from link on the homepage. List emiListToNewCase = new List(); Also search for blogs, articles regarding it. Test.stopTest(); Please help! Would have to get back to you. for(case req : requestList){ EquipmentIDListUpdate.add(EMIRecord.Equipment__c); newCase.Date_Due__c=Date.today(); public static Equipment_Maintenance_Item__c buildItem(Id caseId, Id equipmentId){ insert emptyReq; Equipment_Maintenance_Item__c workP = createWorkPart(equipmentId, emptyReq.Id); Salesforce projects, superbadges, and sample apps - Index APEX. I have complete Idea of this coding bt I am not getting what to do before writing this code exactly for this challenge. Hi @Edgar Moran, Can you please send me complete code of this "Unlock the Apex Specialist Superbadge". Equipment_Maintenance_Item__c newEMIRecord = new Equipment_Maintenance_Item__c(); if(newMRRecordList.size()>0){ Hey pratap! private static final string REQUEST_TYPE = Routine Maintenance; newCase.Date_Reported__c=Date.today(); product.Name = test; public static void testNegative(){ } Case maintenanceNew = new Case(); I'm working on the Apex Specialist super badge on the Salesforce Trailhead. private static void testMaintenanceRequestNegative(){ newMRRecord.Type=Routine Maintenance; Hard times, Challenge 1 : Automate record creation Can you please help me out, I am also getting the same error. Please note that I also have separate method to cover positive and negative scenarios. Integer numberOfDays = Integer.valueOf(leastValueMap.get(c.Id).Equipment__r.Maintenance_Cycle__c); } Newest 'superbadges' Questions - Salesforce Stack Exchange How can we prove that the supernatural or paranormal doesn't exist? } } Create an account to follow your favorite communities and start taking part in conversations. Home. public with sharing class WarehouseCalloutService implements queueable, Database.AllowsCallouts {. List newRoutineMaintenanceVehicleRecordIDList = new List(); insert acc; Contact contact = new Contact(); Hi Admin, following up on this comment. GitHub - minicruiser/Apex-Specialist-Superbadge maintenanceNew.AccountId = acc.Id; Vehicle__c newVehicle = new Vehicle__c(); insert workP; test.startTest(); Its a pretty long post that i wrote quiet long time back. Use the included package content to . How do I retrieve all files in VS Code? - salesforcedx cli newItem.Quantity__c = item.Quantity__c; My Blog explains about the steps for completing this super badge. This code works perfectly fine for Challenge 1. newEMIRecord.Equipment__c=EMIRecord.Equipment__c; } Create your own notes with your understanding and you can ask a senior at work to review them for you. newCase.Vehicle__c=vehicleId; Map productMap = (Map) p; We have a small group to help out each others. e.Maintenance_Request__c = oldNewCaseMap.get(emis.Maintenance_Request__c).Id; Do I need to do some prep work. for(Integer i_fail = 0; i_fail < 300; i_fail ++){ A tag already exists with the provided branch name. If you don't see your @future method in the list, then there's something wrong, but if you . private static final string WORKING = Working; Hey harsh. You should definitely complete the task on your own and you can get all the help. Now Update the below code in HelperClass MaintenanceRequestHelper, public static void updateWorkOrders(){// update workorders//bulk determineList