Dave Debusschere Death, Shih Tzu Puppies For Sale In East Texas, San Diego Police Helicopter Activity Now, Dr Kumar Diabetes Glucotrust, Articles A

Set caseIdSet = new Set(); Map oldNewCaseMap = new Map(); As it's currently written, it's hard to understand your solution. salesforce Share Improve this question Follow Find centralized, trusted content and collaborate around the technologies you use most. } Thanks for letting know. Hey nelson..Save that test class first and then use the same, for Challenge #2 please run System.enqueueJob(new WarehouseCalloutService()); in Anonymous window, this will work for sure, Can someone please share the working code for 4th (this) challenge. newCase.Date_Due__c=newDate; private static void linkEquipmentsToNewCases( test.stopTest(); list allRequests = [select id newCase.Type=Routine Maintenance; , Test.setMockMock Hey itachi, try debugging the code and look where the issue is. Please Check this answer if this helps. I ll look into it and get back to you shortly. maintenance_cycle__C = 10, Map mapOldCasesWithNewCases = createNewCases(caseList); linkEquipmentsToNewCases(mapOldCasesWithItems,mapOldCasesWithNewCases); System.assert(numberAllCases==900); Case newCase = new Case(); I highly doubt the entire quest would have changed. Case newCase = buildCase(vehicle.Id,'Electrical','DummyFAIL_'+i_fail); Thanks for your wonderful gesture of letting know, I am also geating the same error . vehicleToEquipmentMap.put(MRRecord.Vehicle__c,EquipmentIDListUpdate); This query will return all completed batch, future, and queryable jobs that were completed today. static private Case createNewMaintenanceCase(Id oldCaseId,Id vehicle, Date newDate) { It should work. @future, Http@futureAPI, @future callout true @future http.send for(Case newCase : [SELECT Id, Comments, Vehicle__c, Status FROM Case WHERE Subject LIKE DummyOK%]){ Hot Network Questions Help with Superbadge Apex Specialist Step 3? } Map mapOldCasesWithItems, Map mapOldCasesWithNewCases){. I am getting Variable does not exist: MaintenanceRequestTest error. Test callout logic List newRoutineMaintenanceVehicleRecordIDList = new List(); @isTest Accelerate learning across your organization. maintenanceCycle=EMIRecord.Equipment__r.Maintenance_Cycle__c; id equipmentId = equipment.Id; case emptyReq = createMaintenanceRequest(vehicleId,equipmentId); MaintenanceRequestHelper.createNewEquipmentMaintenanceItem(Trigger.newMap); EmailEncodingKey=UTF-8, LastName=Testing, LanguageLocaleKey=en_US, Automate record creation | Apex Specialist | Salesforce - YouTube 0:00 / 8:46 Automate record creation | Apex Specialist | Salesforce wonder studies 5.79K subscribers Subscribe 517 Share. for(AggregateResult res :wpc){ Lightning Experience Specialist } For the most part everything else is pretty straightforward and this helped me get my 500 points. The major problem that I have with superbadges is just understanding the question I have always known the input and output when I did programming. But I have created it as you can see in below image. Schedule synchronization using Apex code. replacement_part__c = true); newEMIRecord.Equipment__c=EMIRecord.Equipment__c; Issue with Superbadge Apex Specialist Step 5? , ApexApex()75%Apex(1%) Apex Specialist Superbadge. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. If nothing happens, download GitHub Desktop and try again. I have complete Idea of this coding bt I am not getting what to do before writing this code exactly for this challenge. { Viewed 5k times . Superbadge Process Automation Specialist Full Solutions. This is the message I get: insert newMRRecordList; It is nothing but the name of the class created earlier. newRoutineMaintenanceVehicleRecordIDList.add(MRRecord.Vehicle__c); }, PRIVATE STATIC Equipment_Maintenance_Item__c createWorkPart(id equipmentId,id requestId){ ApexSOQL100, Apex please help. result.put((Id)res.get(cID),addDays); insert contact; Vehicle__c vehicle = new Vehicle__c(); check if u have creted a process builder , i did create a proces builder and deactivated and it worked for me. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Case newMRRecord = new Case(); , Greeting Laendor, } MaintenanceRequestTest.CreateData( 5,2,2,Repair); Home. Tips, ApexWeb APIApexDML1, Trigger.new sObject List insert vehicle; Continuing my quest with trailhead#SeizetheTrail , the last one in my list is theAdvanced Apex Specialist Superbadge. System.debug(*** Total cases (expected 900): +numberAllCases); i wanted to excel myself in healthcloud domain of salesforce as i have started badges of that domain on trailhead which certification i should do to expertise myself in that domain, Hi there Neha ! } Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. private static final String WAREHOUSE_URL = https://th-superbadge-apex.herokuapp.com/equipment; public void execute(QueueableContext context){ , Apex, ApexHttpCalloutMock private class MaintenanceRequestHelperTest {, @testSetup With that being said, it seems like you need more understanding of the apex coding language in general. Skip to content. Issue with step #6 of the Lightning Web Components Specialist superbadge. } But i will surely get back to you on this. Date newDate = Date.today(); if(result.get(oneCase.Id)!=null) { https://developer.salesforce.com/docs/atlas.ja-jp.apexcode.meta/apexcode/apex_scheduler.htm, ApexGUISchedulable Apex, [] [] [Apex] Apex , GUISalesforce This Superbadge is part of training/preparation for Platform Developer I Certification exam. Set setIdCases = new Set(); MaintenanceRequestHelper.updateWorkOrders(); b. 0. } newEquipment.Maintenance_Cycle__c = 10; List caseToUpdate = new List(); Hey harsh. newCase.Type=typeCase; Are you sure you want to create this branch? Equipment_Maintenance_Item__c wp = new Equipment_Maintenance_Item__c(Equipment__c = equipmentId, Set idOldCases = mapOldCasesWithNewCases.keySet(); Test.startTest(); Trailhead Academy. Advanced-Apex-Specialist-Salesforce-Super-Badge. For that, I would suggest the following udemy course: Salesforce Development Course. I hope you well.I know I should contact you but I just do not have anyone to turn to.Am stuck on challenge 4 for almost 3 weeks.Please help out. system.debug(newEMIRecordList.size() +newEMIRecordList.size()); Is that just automatically done behind the scenes? Closing a Maintenance Request of type Routine Maintenance did not create of a new . System.debug(*** Updated cases: +caseToUpdate.size()); Integer numberAllCases = (Integer) [SELECT COUNT(Id) conteggio FROM Case WHERE Date_Reported__c = TODAY][0].get(conteggio); Currently there arent any specific certification related to health cloud. We could not find the class MaintenanceRequestHelperTest using assertions in the unit tests. 2UnixCron, Apex Subject=REQUEST_SUBJECT, We have a small group to help out each others. If nothing happens, download Xcode and try again. salesforcedx-cli vs-code trailhead sfdx-plugin superbadges Chuck 805 asked Jan 22, 2021 at 0:05 6 votes 2 answers 5k views test.stopTest(); list allRequest = [select id SELECT Id, Maintenance_Request__c, Equipment__c , Quantity__c There was a problem preparing your codespace, please try again. else if(leastValueMap.containsKey(emi.Maintenance_Request__c) && emi.Equipment__r.Maintenance_Cycle__c < leastValueMap.get(emi.Maintenance_Request__c).Equipment__r.Maintenance_Cycle__c){ Equipment_Maintenance_Item__c i2 = buildItem(newCases[i_fail].Id, equipment.Id); Test automation logic || Apex Specialist Superbadge Education Org's 273 subscribers Subscribe 23 Share 6.4K views 6 months ago Apex Specialist - Superbadge This is Apex Specialist Superbadge. }. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. } } } When I jumped into the super badge I realised that lack a lot of info surrounding the Superbadge. Honestly, I suggest reviewing the trailheads leading up to the apex super badge since the apex specialist Superbadge tests you on those core concepts. if(newProducts.size() >0) else if(maintenanceCycle > EMIRecord.Equipment__r.Maintenance_Cycle__c){ Also search for blogs, articles regarding it. } } (I have already renamed Case and Product objects) list workPartList = new list(); 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]); Apex Specialist Superbadge Data Integration Specialist Superbadge Lightning Component Framework Specialist Superbadge PROJECT: Build a Conference Management App [3 hrs 40 mins] Lightning Experience Reports & Dashboards Specialist [4 - 6 hrs] takes the place of the "Reports & Dashboards Specialist" superbadge retired in 2017. The followings are the challenges to earn this badge: Automate record creation using Apex triggers. Try running this query in your developer org: SELECT Id, JobType, MethodName, Status FROM AsyncApexJob WHERE CompletedDate = TODAY. I'm working on the Apex Specialist super badge on the Salesforce Trailhead. Use the naming conventions specified in the requirements document to ensure a successful deployment. If you don't get the complete picture of super badge, you can jot down the requirements and connect them(like a process flow diagram). insert tmpCases; public static Map getDueDate(List CaseIDs) { return Vehicle; This superbadges require a bit of practical experience in apex and all of them are not available on trailhead. } Challenge Not yet complete heres whats wrong: Salesforce Apex specialist superbadge challenge 4. pr.Current_Inventory__c = (Integer)productMap.get(quantity); Schedule synchronization | Apex Specialist | Salesforce wonder studies 5.77K subscribers Subscribe 241 Share Save 59K views 7 months ago Superbadge Apex Specialist PLEASE SUBSCRIBE IF YOU. secondList.add(cas); Is it a bug? I have a background in programming but I just can't understand most of the challenge. newEMIRecord.Quantity__c=EMIRecord.Quantity__c; newEMIRecordList.add(newEMIRecord); I am stuck in challenge 6. @istest Please update challenge 6 as well as all the related material. I used this code for MaintenanceRequestHelper: public with sharing class MaintenanceRequestHelper {. system.assertEquals(newReq.Type, REQUEST_TYPE); https://salesforce.quip.com/gJ3QAkFy6boE, Apex SpecialistApexMockApex I will look into it surely Thanks, Please leave a comment once you update the code, Could u specifically mention if one challenge has changed or entire superbadge set, Check the code mentioned by Laendor n lemme know if it works. List emiListToBeUpdated = new List(); for(case c:caseList){ Map newCases = new Map(); Hi Niya. Alternatively you can join our telegram group for technical discussions among industry professionals, Hey komal. This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. insert equipment; for(Integer i_fail = 0; i_fail < 300; i_fail ++){ Please Vehicle__c newVehicle = new Vehicle__c(); }. pr.Replacement_Part__c = (Boolean)productMap.get(replacement); List externalProducts = (List) JSON.deserializeUntyped(response.getBody()); I started working on this superbadge and this post is to document some of the findings / tips / gotchas as I progress through this one. pr.Warehouse_SKU__c = (String)productMap.get(sku); newCase.Date_Due__c = todayDate.addDays(numberOfDays); If nothing happens, download Xcode and try again. newCase.Origin=web; contact.LastName = last; maintenanceNew.Status = 'New'; insert workP; test.startTest(); Trailhead solution for Apex Specialist superbadge } Try it. newItems.add(i2); insert equipment; Do I need to do some prep work. trigger MaintenanceRequest on Case (before update, after update, before insert, after insert) { Please lemme know if works. for(Case MRRecord: newList){ I have followed all your steps correctly, But Im still having this error every single time in 3rd challenge. else{ Apex Specialist Superbadge Use integration and business logic to push your Apex coding skills to the limit. sign in Origin=REQUEST_ORIGIN, } . ~2 hrs 15 mins +2,200 points Module Asynchronous Apex lifespan_months__C = 10, 2022; static testmethod void testjob(){ Superbadge Apex Specialist looks good on Resume, and they prove worth it as well. Test.stopTest(); Dont forget to create the chatter group , update the product trigger to handle only, Override the New and Edit buttons under the Order object to use the OrderEdit visualforce page. , Super }. List wpc= [ Trailhead solution for Apex Specialist superbadge. emiListToBeUpdated.add(e); request.setMethod(GET); for(Integer i_ok = 0; i_ok < 300; i_ok ++){ newEquipment.Name = Dummy Equipment; Equipment_Maintenance_Item__c newItem = new Equipment_Maintenance_Item__c(); Integer daysToAdd = Integer.valueOf(res.get(cycle)); When this Superbadge came up, I identified several resources online that helped walk me through it. cas.Type = 'Repair'; for(Case caseInList: caseList){ product2 equipment = new product2(name = SuperEquipment, Http http = new Http(); System.assertEquals(1000,createdCases.size()); Need help for Challenge 4- can some one help me pls. Apex Specialist Tips, Copyright 2000-2017 salesforce.com, inc.All rights reserved., Trailhead Reports & Dashboards Specialist, https://developer.salesforce.com/docs/atlas.ja-jp.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_apexgov.htm, https://developer.salesforce.com/docs/atlas.ja-jp.apexcode.meta/apexcode/apex_scheduler.htm. Challenge Not yet complete Here whats wrong: }, @istest Thanks again for pointing it out. REST APICall Challenge 6 - WarehouseSyncScheduleTest.class. The nature of simulating nature: A Q&A with IBM Quantum researcher Dr. Jamie We've added a "Necessary cookies only" option to the cookie consent popup. } insert workP; test.startTest(); https://takesurveyguide.com/safeway-customer-survey/. Apex SpecialistApexMockApex Tips3 Playground Trailhead - Reports & Dashboards Specialist . where Maintenance_Request__c = :emptyReq.Id]; system.assert(workPart != null); pr.Maintenance_Cycle__c = (Integer)productMap.get(maintenanceperiod); Step 1. private static void testMaintenanceRequestBulk(){ Best Answer chosen by Mohammad Shahid Shah. // This object is available in API version 17.0 and later. If you don't see your @future method in the list, then there's something wrong, but if you . setIdCases.add(caseInList.Id); List tmpCases = new List(); In that case the post hasnt been updated that much recently. I do know the core concepts but I am missing the connection. if(!newRoutineMaintenanceVehicleRecordIDList.contains(MRRecord.Vehicle__c)) GROUP BY Maintenance_Request__r.ID ]; It's pretty comprehensive and contains several examples. somethingToUpdate.status = CLOSED; newEMIRecord.Quantity__c=EMIRecord.Quantity__c; What sort of strategies would a medieval military use against a fantasy giant? Would have to get back to you. newEMIRecord.Maintenance_Request__c=MRRecord.ID; There can be technical errors n it might take more than one time to get it verified. Please provide additional details in your answer. Honestly, I suggest reviewing the trailheads leading up to the apex super badge since the apex specialist Superbadge tests you on those core concepts. // TODO: Complete the method to update workorders, public static void createNewMaintenanceRequest(Map oldMap, Map newMap){ Hi, for(Id oldId : oldIdCases){ caseToUpdate.add(newCase); }, if(Trigger.isAfter){ id vehicleId = vehicle.Id; product2 equipment = createEq(); Profile p = [SELECT Id FROM Profile WHERE Name=Standard User]; Work fast with our official CLI. to use Codespaces. maintenanceNew.ProductId = product.Id; I just started Salesforce one and a half months ago. Maintenance Request to the same vehicle . Hope it helps. from case Change the labels for Case and Product To Maintenance Request and Equipment respectively. }. Thanks again buddy. Apex Most of the other answers I found online also keep pointing to this Equipment__c field, which doesnt exist. Hey Nikhil. Vehicle__C vehicle = createVehicle(); We are always on the hunt for writers that have something interesting to say! If you are facing any hurdles to complete the challenge, just go through the code. Integer numberOfDays = Integer.valueOf(leastValueMap.get(c.Id).Equipment__r.Maintenance_Cycle__c); What is a word for the arcane equivalent of a monastery? Eigenmann & Veronelli un Gruppo internazionale che nasce nel 1910 leader nella distribuzione di specialit chimiche e ingredienti alimentari per l'industria.. Con circa 340 dipendenti e . Getting so many queries on this one I will surely try prioritize. Trailmixes. newCase.Status=closed; insert workPartList; test.startTest(); update emptyReq; newItem.Equipment__c = equipmentId; @TestSetup newEMIRecord.Maintenance_Request__c=MRRecord.ID; tmpCases.add(newCases.get(oldId)); Code shared by Laendor is not working. My Blog explains about the steps for completing this super badge. A tag already exists with the provided branch name. newCase.Date_Reported__c=Date.today(); Vehicle__c vehicle = buildVehicle(); newCase.Date_Reported__c=Date.today(); newCases.add(newCase); system.debug(EMIList +EMIList); } I'm having a really hard time finishing this challenge. vehicle.Name = car; Case newCase = new Case(); Stuck on Superbadge Apex Specialist Step 4? } A tag already exists with the provided branch name. e.Equipment__c = emis.Equipment__c; } Start a discussion in the forum to get straight-up answers. if(res.get(cycle)!=null){ ), Press J to jump to the feed. @future } Challenge Not yet complete heres whats wrong: Create and follow custom learning playlists. Do lemme know if you find solutions codes that work well for it. And execute in the anonymous window below: Read More: Salesforce Interview Questions and Answers We Swear By! Step 2. insert vehicleList; Sorted by: 6. hi, martand please lemme know if it is verified, I ll update the same! I want to know that which part of my code is wrong, not just answer. Product2 pr = new Product2(); for(Integer i_fail = 0; i_fail < 300; i_fail ++){ newCase.Equipment__c = leastValueMap.get(c.Id).Equipment__c; for(Equipment_Maintenance_Item__c emi : emiList){ I had mine and wrote this while doing so, Free Salesforce Exam Coupon Codes for 2022. Is there a proper earth ground point in this switch box? How to react to a students panic attack in an oral exam? public with sharing class MaintenanceRequestHelperTest {. Tips . Apex Specialist. Use Git or checkout with SVN using the web URL. }. } private static final string REQUEST_SUBJECT = Testing subject; PRIVATE STATIC Vehicle__c createVehicle(){ pr.Cost__c = (Integer)productMap.get(cost); Udemy would be a paid platform, hence I'll suggest to first exhaust all the free resources and then jump on to Udemy courses. Product needs to be renamed as Equipment not Vehicle since Vehicle is already provided to us in the installed package. Apex Specialist is one of the superbadges of Salesforce trailhead(A New Approach to Learning Salesforce). } Hi Shaid, Please use below code:-. Go to Setup > Apex Classes > Schedule a job like below: Edit the following in the Developer console. Try logging in and out and reverify. Apex specialist superbadge challenge 4. Thank you for this solution! I think you should focus on gaining more of hands on experiences in handling scenarios similar to those in health cloud domain. Please update challenge 6 and all the respective things related to it. 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(); leastValueMap.put(emi.Maintenance_Request__c,emi); So glad you cared to share this. And i aint plan to do those again anytime sooner as well. upsert newProducts; Apologies for m caught quite off guard at this moment. The challenge is expecting to find the closed Maintenance Request plus an New Maintenance Request of type Routine Maintenance with the same Vehicle as the closed one. check the solution martland has linked, lemme know if it is working fin Use Git or checkout with SVN using the web URL. insert requestList; for(integer i = 0; i < 300; i++){ There was a problem preparing your codespace, please try again. If you like what I write and it has been ever helpful to you. newCases.put(oneCase.Id, newRoutineCase); SELECT Maintenance_Request__r.ID cID, MIN(Equipment__r.Maintenance_Cycle__c)cycle Now, you'll have to map to what needs to done. insert newCases; List newItems = new List(); How can we prove that the supernatural or paranormal doesn't exist? update secondList; Invalid type: Schema.Work_Part__c, Use variable as ProductId instaed of Equipment__c Create an account to follow your favorite communities and start taking part in conversations. contact.AccountId = acc.Id; Equipment_Maintenance_Item__c e = new Equipment_Maintenance_Item__c(); Maintenance_Request__c = requestId); List newEMIRecordList = new List(); newCase.Date_Reported__c = System.today(); Its a pretty long post that i wrote quiet long time back. What video game is Charlie playing in Poker Face S01E07? Recovering from a blunder I made while emailing a professor. private static final string WORKING = Working; Mock, if(maintenanceCycle>0) } 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. newCase.Subject=Routine Maintenance of Vehicle; and Schema Equipment_Maintenance_Item__c instead of Work_Part__c. Please help! Create your own notes with your understanding and you can ask a senior at work to review them for you. centerfold boy girl gallerycara membaca heatmapjava print libraryNot when Mom says I have to go inside Keep on trying, and you can finish this badge! If you search regarding Apex on YouTube you'll find many more channels and videos. } insert somethingToUpdate; Equipment_Maintenance_Item__c workP = createWorkPart(equipmentId,somethingToUpdate.id); return equipment; Hope it helps, find it at the bottom of the website or search site name on telegram. So even though you know the concepts you'll have to check and understand what fits where. from Equipment_Maintenance_Item__c Search for an answer or ask a question of the zone or Customer Support. newMRRecord.Date_Due__c=date.today(); newRoutineMaintenanceVehicleRecordIDList.add(MRRecord.Vehicle__c); newProducts.add(pr); 'Apex Specialist' is one of the superbadges of Salesforce trailhead(A New Approach to Learning Salesforce). If nothing happens, download GitHub Desktop and try again. public static void updateWorkOrders(List caseList) { if(Trigger.isInsert){ Trailheads are good for general understanding of a concept whereas the super badge is a test of that concept in a scenario. private static final string STATUS_NEW = New; Salesforce, Trailhead, superbadge Discover your ideal career. Test.startTest() Test.stopTest() , , startTeststopTest, A. Super BadgeUnlockTipsTrailheadTipsUnlock Vehicle__c vehicle = [SELECT Id, Name FROM Vehicle__c WHERE Name = car LIMIT 1]; } insert newCases; newItems = new List(); jaran@wezana.solutions, @isTest Thanks for letting know. Inserting a new Maintenance Request of type Routine Maintenance and then closing it did not create of a new Maintenance Request based upon the original record correctly. Connect on telegram if you again face a similar issue, Hi jaffer. CronTrigger is similar to a cron job on UNIX systems. I had cleared this superbadge way back in time would have to seriously redo it to understand what was done on this one. newItem.Quantity__c = 10; The WarehouseSyncSchedule apex class does not appear to be queuing a job for the WarehouseCalloutService class. list oldRequestIds = new list(); for(integer i = 0; i < 300; i++){ } return result; new List(); SYSTEM.assertEquals(newReq.Date_Reported__c, system.today()); @istest maintenanceNew.Subject = 'Other'; TrailheadSalesforce same error for me too.. can you please help me out, hi Stuck on Superbadge Apex Specialist Step 1? if(newEMIRecordList.size()>0){ newCase.Subject=subjectCase; }, Challenge 2 : Synchronize Salesforce data with an external system 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. pr.Name = (String)productMap.get(name); TimeZoneSidKey=America/Los_Angeles, UserName=stdtest@testorg.com); List caseList = new List(); 6. REST APIJSONJSONApex ObjectJSON, , VisualforceLightning ComponentApexApexApex rev2023.3.3.43278. Career Paths. Challenge Not yet complete heres whats wrong: update caseToUpdate; Apex Specialist Superbadge Trailmix | Salesforce Trailhead Laura Thomas +19,700 Points +1,000 points Module Apex Triggers Write Apex triggers to perform custom database actions. maintenanceNew.AccountId = acc.Id; You signed in with another tab or window. Can you please help me out, I am also getting the same error. public static void testNegative(){ if(vehicleToEquipmentMap.get(MRRecord.Vehicle__c)!=null){ }. } Do we need to create this lookup relationship between Maintenance Request (Case) and Equipment (Product)? newCase.Origin = 'Phone'; }, PRIVATE STATIC Case createMaintenanceRequest(id vehicleId, id equipmentId){ maintenanceCycle=EMIRecord.Equipment__r.Maintenance_Cycle__c; Copy the name of the package and use this command in the terminal. I think everyone has given awesome suggestions , I'll try to add some more insights -. } Set Up Development Org id equipmentId = equipment.Id; System.debug(vehicleId+ +equipmentId); case somethingToUpdate = createMaintenanceRequest(vehicleId,equipmentId); System.assert(numberAllCases==600); Challenge 2: Synchronize Salesforce data with an external system. List caseToUpdate = new List(); equipmentList.add(createEq()); Test.stopTest(); }, Hi, can anyone help me out with Challenge 4 in apex specialist? FROM Equipment_Maintenance_Item__c Decimal maintenanceCycle = 0; Install the unmanaged package for the schema and stubs for Apex classes and triggers. Alternatively you can join our telegram group for technical discussions among industry professionals. maintenanceNew.Product__c = product.Id;