Пікірлер
@AmitKarlekar-g2h
@AmitKarlekar-g2h 4 сағат бұрын
I have started to follow this bootcamp from the past few days regularly. I have performed the generate full name assignment and it's working pretty well. Full name is generating in capital, and the reset button is refreshing the input fields and the output I am sharing the code I wrote for your reference to check if there is any scope of improvement. I'll follow the solution you might have given in the next lecture: ================================================================================== LWC Html Code: <template> <lightning-card title="Generate Full Name Based On First and Last Name" icon-name="standard:employee_contact"> <div class="slds-p-around_medium"> <lightning-input type="text" label="First Name" name="firstName" value={firstName} placeholder="Enter First Name" onchange={handleChange}> </lightning-input> <lightning-input type="text" label="Last Name" name="lastName" value={lastName} placeholder="Enter Last Name" onchange={handleChange}> </lightning-input><br> <p><b>Full Name: {fullName}</b></p><br> <lightning-button variant="brand" label="Generate Full Name" name="generate" title="Generate Full Name" icon-name="action:add_relationship" onclick={handleClick}> </lightning-button> &nbsp;&nbsp; <lightning-button label="Reset" name="reset" title="Reset The Fields" icon-name="utility:refresh" onclick={handleClick}> </lightning-button> &nbsp;&nbsp; </div> </lightning-card> </template> ================================================================================== LWC JavaScript Code: import { LightningElement } from 'lwc'; export default class AjGenerateFullName extends LightningElement { firstName; lastName; fullName; handleChange(event) { const name = event.target.name; const inputValue = event.target.value; if (name === 'firstName') { this.firstName = inputValue; console.log('First Name => ', this.firstName); } else { this.lastName = inputValue; console.log('Last Name => ', this.lastName); } } handleClick(event) { if (event.target.name === 'generate') { this.fullName = (this.firstName + ' ' + this.lastName).toUpperCase(); console.log('Full Name => ', this.fullName); } else if (event.target.name === 'reset') { this.firstName = ''; this.lastName = ''; this.fullName = ''; } } }
@TechJourneyWithAnkit
@TechJourneyWithAnkit 4 сағат бұрын
Good job Amit
@SCRA0951
@SCRA0951 17 сағат бұрын
I have one question : if one user getting soql101 exception in production .how can we solve that?
@TechJourneyWithAnkit
@TechJourneyWithAnkit 4 сағат бұрын
It mostly because of bad coding practice or sometime due to bad data
@chatwithsubhra1
@chatwithsubhra1 23 сағат бұрын
The video is good and able to get output. However refresh apex is not working. From console logs no specific errors
@TechJourneyWithAnkit
@TechJourneyWithAnkit 4 сағат бұрын
Check for typos with refresh apex or recheck you are passing wire property
@navnitkhandait6750
@navnitkhandait6750 Күн бұрын
Is this series end here ?? on Triggers ?
@TechJourneyWithAnkit
@TechJourneyWithAnkit 19 сағат бұрын
Nope soon will publish few more scenarios
@nagamanipyda2404
@nagamanipyda2404 Күн бұрын
Does the guide includes answers as well @Ankit
@TechJourneyWithAnkit
@TechJourneyWithAnkit Күн бұрын
Yes
@manasapalle480
@manasapalle480 Күн бұрын
could you please review error which we are getting
@TechJourneyWithAnkit
@TechJourneyWithAnkit Күн бұрын
Post your error in telegram group or for one to one connect take help from topmate
@Niraj025
@Niraj025 Күн бұрын
Can we write accepted domain at class level. Only once??
@TechJourneyWithAnkit
@TechJourneyWithAnkit Күн бұрын
Yes you can
@RichLady123
@RichLady123 2 күн бұрын
This is so long that I am forgetting What exactly we are doing
@TechJourneyWithAnkit
@TechJourneyWithAnkit Күн бұрын
This is common for the beginner. Keep practising
@gomathihariharan9464
@gomathihariharan9464 2 күн бұрын
For the last question, permission set is used for additive solutions. Hence it is not restrictive and hence cannot restrict the user permissions. For example, if a object permission is restricted via profile for all the users, some permissions can be extended or provided through permission sets for a set of users for temporary or a permanent period.
@TechJourneyWithAnkit
@TechJourneyWithAnkit Күн бұрын
Correct buddy
@awesomekj5812
@awesomekj5812 2 күн бұрын
your 1st question is very common in capital markets ......we normally use OWD + Public Group + Sharing rule to create isolation within same org for analyst and Investment banker.
@TechJourneyWithAnkit
@TechJourneyWithAnkit Күн бұрын
Correct
@ShubhamGhodam
@ShubhamGhodam 3 күн бұрын
1st question Ans- No, user cannot edit the record. Salesforce follow most restricted access rulewhen multiple setting are applied. In this case, sharing settings override the profile permission, that's why User A not able to edit the record. Even if, User A profile has edit permission, then user can only edit the record that he own. Since the record is shared with read-only access. User A cannot edit it.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 күн бұрын
Correct !!
@trippy0899
@trippy0899 3 күн бұрын
We Can't write a validation rule on record deletion , you can do this by using the apex trigger .
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
What about flows ? Can we do this, give a thought
@SandeepKumar-n1r7s
@SandeepKumar-n1r7s 3 күн бұрын
1 .User A able to Edit the Record. Read only permission override by Read/write. 2. We Can't write validation on deletion of record. We can achieve with alternative methods Using Flow(before delete) throw custom error message, Using triggers (before delete event) 3. By Using Dataloader,Reports & Workbench we can export data.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 күн бұрын
The first one is not correct. Remember the rule: most restrictive setting always wins. Second is good. Third - you are missing one OOTB option for export. In setup search for Data Export. Rest all options are good.
@ShubhamGhodam
@ShubhamGhodam 3 күн бұрын
No, validation rule do not work on the record deletion. Validation rule only runs whenever a record is created or updated, till now Salesforce does not provide validation rules on record deletion. To Provide record deletion we can use before delete trigger.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
What about flows , can we do that. Give a thought on this
@ShubhamGhodam
@ShubhamGhodam 2 күн бұрын
​@@TechJourneyWithAnkit yes, we can also achieve this by using record triggered flow(before delete). We need to create record triggered flow before delete that block the deletion of record based on the certain conditions.
@nikhilverma9491
@nikhilverma9491 23 сағат бұрын
@@TechJourneyWithAnkit Yes we can create a flow or also we can create a before delete trigger which checks the criteria and prevents to delete the record
@navnitkhandait6750
@navnitkhandait6750 3 күн бұрын
Day 7 of mine with Apex Triggers
@TechJourneyWithAnkit
@TechJourneyWithAnkit Күн бұрын
Keep going
@SurajLama-m4g
@SurajLama-m4g 3 күн бұрын
Hi Ankit, I love your videos. Regarding your retry mechanism, I tried to look for Thread class but I did not see the Thread class available for APEX class. Thread class is available for other programming languages but not APEX as per my understanding. Please let me know if I am missing something. Thanks
@TechJourneyWithAnkit
@TechJourneyWithAnkit Күн бұрын
Seems like it is depreciated
@Avantika-i1d
@Avantika-i1d 3 күн бұрын
Hi ankit, Just a small doubt in previous scenario based question you mentioned like in case we need to provide access we can use assignment rules for standard objects and public groups for custom object Then why are we using trigger in case of providing access to Interviewer object. Basically wanted to know when should we go for assignment rules, Public groups and trigger
@TechJourneyWithAnkit
@TechJourneyWithAnkit Күн бұрын
Assignment rule works onky for lead and case , for other objects custom solution is needed. Public group have all together different use case like sharing record
@trippy0899
@trippy0899 3 күн бұрын
Types of reports in salesforce 1. Summary report 2.Matrix report 3.Tabular report 4.Joined report.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
Correct
@navnitkhandait6750
@navnitkhandait6750 3 күн бұрын
Day 6 of mine with apex trigger
@ganesh3169
@ganesh3169 3 күн бұрын
Ankit, please make a video on OOPs concept questions and answers. These questions are asked in every interview, whether for freshers or experienced candidates. Your sessions are very useful.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
It is already there my friend. Check Apex interview playlist
@harmeetsandhu8238
@harmeetsandhu8238 3 күн бұрын
Sir When i authenticate i'm getting error "Illegal scope" .
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
Make sure you have spell the scope name correctly in Authentication handler
@harmeetsandhu8238
@harmeetsandhu8238 3 күн бұрын
Sir I'm getting error "INVALID_CLIENT: Failed to get client" How i overcome ???
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
Recheck your Auth Provider
@MeenakshiGopal24
@MeenakshiGopal24 4 күн бұрын
how did you keep both the window side by side.i am not able to do it.btw this bootcamp is much needed and precise.thank you very much
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
Drag one tab and put it on other side.
@gm85959
@gm85959 4 күн бұрын
Last question ,we can't restrict a user's permission using a permission set because ps provides additional permissions
@TechJourneyWithAnkit
@TechJourneyWithAnkit 4 күн бұрын
Correct. Permission sets add permissions, they don't restrict them.
@SrinivasNandaKumar
@SrinivasNandaKumar 4 күн бұрын
super sir
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
Glad you found this helpful
@manasapalle480
@manasapalle480 4 күн бұрын
HI Ankit, I have followed same steps as you mentioned ,however getting error like ''proxy Object" I am attaching screen shot could you please clarify us the doubt which we are getting Thanks alot for wonderful content.I am unable to add screenshot here
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
At what step you are getting this error. Is authentication successful from Auth Provider. If yes recheck the endpoint you are hitting amd try search for one keyword like holidays or Despacito
@manasapalle480
@manasapalle480 2 күн бұрын
@@TechJourneyWithAnkit Authentication is successful getting errorIt is coming when we try to do the JSON.parse(responseString) in the searchTrack method
@user-en2rz7lj9r
@user-en2rz7lj9r Күн бұрын
@@manasapalle480 update parser to "let response = JSON.parse(JSON.stringify(responseString))"
@nazirsfdc1662
@nazirsfdc1662 4 күн бұрын
Hi Ankit i have one question wer do we use mixed dml what real-time scenario we encounter this mixed dml
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
Its normal to use it regular application building to update the user and contact at same time and which cause dml
@navnitkhandait6750
@navnitkhandait6750 5 күн бұрын
day 5 continue with Triggers .
@TechJourneyWithAnkit
@TechJourneyWithAnkit 5 күн бұрын
Keep going
@praveenyarnal6717
@praveenyarnal6717 5 күн бұрын
Thank you for wonderful content
@TechJourneyWithAnkit
@TechJourneyWithAnkit 5 күн бұрын
Glad you found it helpful
@SurajAwale-o2q
@SurajAwale-o2q 6 күн бұрын
permission set use only to improvise the profile permission to user but we can't restrict the profile level permission
@TechJourneyWithAnkit
@TechJourneyWithAnkit 5 күн бұрын
Correct buddy
@nikhilniraj6393
@nikhilniraj6393 6 күн бұрын
If we write class A without sharing and class B with sharing then what will happen? Any use case?
@navnitkhandait6750
@navnitkhandait6750 6 күн бұрын
sir we can also do this if (opp.tasks.size()> 0 | | opp.Events.size()> 0 ) than add current opportunity record id into the set of id . current me if I am wrong !!
@TechJourneyWithAnkit
@TechJourneyWithAnkit 5 күн бұрын
Yes you can do that
@navnitkhandait6750
@navnitkhandait6750 6 күн бұрын
did not understand the part where the binding variables used . with respect you said sir it is Trigger.new context variable and I really dont get it why ? but we are passing the trigger.old there in binding variable . 16:26 . is it ok to go like iterate over the old opportunitye and then store there id inot a list and then pass those list in that qeury ?
@TechJourneyWithAnkit
@TechJourneyWithAnkit 5 күн бұрын
Yes for delete always trigger.old In delete case trigger.new will be null
@EliF.Shalinski
@EliF.Shalinski 6 күн бұрын
Great video,thank u This is my approach (Im using it with trigger framework) public class AccountTriggerHandler extends AbstractTriggerHandler{ if (isAfter && isUpdate) { updateRelConsPhone_AnkitTrigger(); } private void updateRelConsPhone_AnkitTrigger(){ Account oldAcc; Map<Id,Account> oldAccMap = (Map<Id,Account>)triggerOldMap; Map<Id,Account> accMap = new Map<Id,Account>(); for (Account newAcc : (List<Account>)triggerNew) { oldAcc = oldAccMap.get(newAcc.Id); if(newAcc.Phone!=oldAcc.Phone){ accMap.put(newAcc.Id, newAcc); } } List<Contact> consForUpdate = new List<Contact>(); if (!accMap.isEmpty()) { for (Contact eachCon : [SELECT Id,AccountId,Phone FROM Contact WHERE AccountId IN:accMap.keySet()]) { if (eachCon.Phone==null ||oldAccMap.get(eachCon.AccountId).Phone==eachCon.Phone ) { eachCon.Phone = accMap.get(eachCon.AccountId).Phone; consForUpdate.add(eachCon); } } if(!consForUpdate.isEmpty()){ Database.update(consForUpdate, false, AccessLevel.USER_MODE); } } } }
@navnitkhandait6750
@navnitkhandait6750 6 күн бұрын
6:06 EVENT WILL BE Before Trigger because user is trying to delte the existing record so we have Trigger.old and Trigger.oldMap to user . (may be I am wrong ...... lets see )
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
Correct
@navnitkhandait6750
@navnitkhandait6750 6 күн бұрын
DAY 4 CONTINUE WITH TRIGGERS .
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
Journey continues.
@Muskan-f9e8f
@Muskan-f9e8f 7 күн бұрын
sir what can i do if i want to fire error for 'Queable class' Using Platform Events ?
@TechJourneyWithAnkit
@TechJourneyWithAnkit 7 күн бұрын
Create custom event and fire it from queable apex
@veerareddy5938
@veerareddy5938 7 күн бұрын
Can we use Platform Events inside the Apex Batch class ?
@TechJourneyWithAnkit
@TechJourneyWithAnkit 7 күн бұрын
For what purpose you want to do
@veerareddy5938
@veerareddy5938 6 күн бұрын
@@TechJourneyWithAnkit Basically we have batch class, That batch class updating the case status to completed .So after updated the case status to complete we need to call the platform event ,Does it work ? If i call the platform events inside the batch class ?
@roychoudhuryArindam
@roychoudhuryArindam 7 күн бұрын
Is it just me Or everyone that your reply to the comments are not visible
@TechJourneyWithAnkit
@TechJourneyWithAnkit 3 күн бұрын
I think others can see. I checked from incognito mode
@navnitkhandait6750
@navnitkhandait6750 8 күн бұрын
/// ASSSINGMENT DONE >>>> public static void PriorityHighWhenCaseUpdate(list<Case> newListCase , map<id , Case> oldListCase){ // BEING INSERTED RECORD ITERETED LOOP. for(Case currentCase : newListCase){ // GETTING OLD VALUES OF THE RECORD USING THE CURRENT ID Case oldCase = oldListCase.get(currentCase.id); if(currentCase.status != oldCase.status){ currentCase.Priority = 'High'; } } }
@ShubhamGhodam
@ShubhamGhodam 8 күн бұрын
If I want to make field required by using trigger then I will use before insert method(trigger) to validate the field or make the field required.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 7 күн бұрын
Yes that is correct
@navnitkhandait6750
@navnitkhandait6750 8 күн бұрын
16:55 we will use contains method when if true we not allowed the email if not we let insert the email !
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 күн бұрын
correct
@navnitkhandait6750
@navnitkhandait6750 8 күн бұрын
DAY 3 CONTINUE WITH APEX TRIGGERS .
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 күн бұрын
keep going
@sdurga-i6j
@sdurga-i6j 8 күн бұрын
i have one doubt how the data is updated on external system in one of the interview asked question explain please
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 күн бұрын
Typically making callout to external system using Patch method. However It depends on the integration method and the external system. Do checkout the other integrations videos.
@maheshmukthala5054
@maheshmukthala5054 8 күн бұрын
We can override the opportunity new button on account related page, so i can auto populate recordid and few account field values on opportunity fields
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 күн бұрын
yes you can do that
@maheshmukthala5054
@maheshmukthala5054 3 күн бұрын
@@TechJourneyWithAnkit thank you.Can u provide me with any suggestions or articles.Iam using aura component and calling lwc.Since overriding new button is supported only aura and vf pages
@jithendrapotturi
@jithendrapotturi 9 күн бұрын
Hi sir i have one doubt regarding hasOwnProperty while iused i am getting an error Object.prototype.hasOwnProperty.call(currentItem, 'Rating') this is given by chatgpt can you guide me
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 күн бұрын
i dont think this is the correct syntax Do it like below object1.hasOwnProperty('property1')
@navnitkhandait6750
@navnitkhandait6750 9 күн бұрын
ASSINGMENT COMPLETE .... public static void CasePhoneToAssociateAccount(list<Case> listOfCase){ // got to know number type is String in case object set<String> setPhoneNumber = new set<String>(); // iterate over the cases with phone which are being insert and store phone in set for(Case cs : listOfCase){ if(String.isNotBlank(cs.SuppliedPhone)){ setPhoneNumber.add(cs.SuppliedPhone); } } // storing account phonenumber and each account Id . map<string , id > myAcPhoneWithid = new map<string , id >(); // fetch the accont with for loop and iterate over to get phone number and its ac id for(Account ac : [select id , phone from account where phone in : setPhoneNumber]){ myAcPhoneWithid.put(ac.Phone , ac.id); } // associating account which have same number as case being insert . for(Case caseRec : listOfCase){ if(String.isNotBlank(caseRec.SuppliedPhone) && myAcPhoneWithid.containsKey(caseRec.SuppliedPhone)){ caseRec.AccountId = myAcPhoneWithid.get(caseRec.SuppliedPhone); } } } // I DONT REALLY GET THE POINT OF USING MAP AT FIRST PLACE IT DOEST COMES INTO THINKIG THAT WHY TO CREATE MAP OR HOW TO THINK FOR THAT . I HOPE SIR YOU WOULD ANSWER THIS . THANKS . if(Trigger.isInsert && Trigger.isBefore){ ytAnkit_Case_Handler.CasePhoneToAssociateAccount(Trigger.new); } HANDLER
@505anusha
@505anusha 9 күн бұрын
1.screen flow 2.auto launched flow record trigger flow schedule trigger flow platform event flow auto launched no trigger flow
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 күн бұрын
Correct
@navnitkhandait6750
@navnitkhandait6750 9 күн бұрын
Day 2 continue with Triggers
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 күн бұрын
keep going
@madhurinarashima9188
@madhurinarashima9188 9 күн бұрын
Roll up summary can be created only on master detail relationships only That too, to count the data from a child to parent object
@TechJourneyWithAnkit
@TechJourneyWithAnkit 9 күн бұрын
Yes not only count but also sum, min and max