Пікірлер
@janac7510
@janac7510 2 сағат бұрын
Nice, how the named credentials will be secure?
@kaustubhpatne6320
@kaustubhpatne6320 6 сағат бұрын
In 1st scenario Where you iterate over accounts Mistake is that Dml statement used inside for loop So to overcome this use separate list and insert list outside for loop
@ravigrover1923
@ravigrover1923 21 сағат бұрын
Answer 1 : using render() method we can control which template will be visible Answer 2: In the controller of your LWC you can create a @api property with name recorded like below: @api recordId;
@ravigrover1923
@ravigrover1923 22 сағат бұрын
public with sharing class UserInfoController { public static String getCurrentUserId() { return UserInfo.getUserId(); } }
@ravigrover1923
@ravigrover1923 22 сағат бұрын
<lightning-combobox name="rating" label="Account Rating" value={value} placeholder="Select a Rating" options={ratingOptions} ></lightning-combobox>
@user-qb7zy3st6y
@user-qb7zy3st6y Күн бұрын
Sir, May you share code?
@user-db2wb5rw8p
@user-db2wb5rw8p Күн бұрын
Hi @Ankit Jain, Thanks for the Wonderful content, I have had one doubt. How to edit custom Types that we implemented in previous session ? I tried with name column but it's not working
@TechJourneyWithAnkit
@TechJourneyWithAnkit Күн бұрын
I beleive If the component are in use it will not allow to do.
@ravigrover1923
@ravigrover1923 Күн бұрын
QueryList Exception : List has no rows exception, store it in a list
@ravigrover1923
@ravigrover1923 Күн бұрын
Set<Id> accSet = new Set<Id>(); for (Account acc : trigger.new){ accSet.add(acc.Id); // do some processing there } List<contact> conList = [SELECT Id,FirstName,LastName FROM Contact WHERE AccountId IN : accSet]; for (Contact con : conList){ // do some processing there }
@TechJourneyWithAnkit
@TechJourneyWithAnkit Күн бұрын
Any other better approach Ravi to avoid two loops
@ravigrover1923
@ravigrover1923 Күн бұрын
DMl Exception: Required Field(Last Name) is mIssing
@alishalinski
@alishalinski 2 күн бұрын
Thank u for video Just confused in one part My question is why we need to keep fieldName:”LeadSource” where we anyway in custom type we r showing it as value and also on typeAttributes one more time assigning LeadSource to it?
@sriharshithareddy7115
@sriharshithareddy7115 2 күн бұрын
1. DML Exception - Required Field Missing (LastName) 2. QueryException - No records returned or trying to assign more than 1 record to a singleton sObject Account variable.
@sriharshithareddy7115
@sriharshithareddy7115 2 күн бұрын
for(Account a : [SELECT Id, (SELECT Id FROM Contacts) FROM Account WHERE Id IN :Trigger.New]{ for(Contacts con : a.Contacts){ //Some contact processing } }
@yogapasalapudi8385
@yogapasalapudi8385 2 күн бұрын
Wonderful Bootcamp 👏
@bbk9988
@bbk9988 2 күн бұрын
Nice video 👍 waiting for the videos on triggers batch apex and other concepts 😊
@kishorey7335
@kishorey7335 2 күн бұрын
set<Id> accId=new set<Id>(); for(Account a:trigger.new){ accId.add(a.Id); } list<contact> conlist=[select Id,AccountId from contact where AccountId in:accId]; for(contact con:conlist){ }
@mohd.arshad1315
@mohd.arshad1315 2 күн бұрын
Yes, anonymous blocks in Salesforce can be executed in User Mode.
@mohd.arshad1315
@mohd.arshad1315 2 күн бұрын
Ankit You are good, please make a list on the apex trigger and Aura also
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 күн бұрын
Sure will plan for it
@AnbalaganK-g8f
@AnbalaganK-g8f 2 күн бұрын
It may throw the query exception. More than one record to a singleton sObject variable.
@awesomekj5812
@awesomekj5812 3 күн бұрын
Curious ..have you done the video on Apex Replay Debugger ? Also for last question --> will you get LIST HAS NO ROWS FOR ASSIGNMENT TO SObject error ??? And we can fix it by converting that account instance to List<Account>
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 күн бұрын
Not yet, will plan for it.
@vaibhavchaubey4748
@vaibhavchaubey4748 3 күн бұрын
required field is missing in last question , cont.LastName
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 күн бұрын
Please tell me the name of exception
@vaibhavchaubey4748
@vaibhavchaubey4748 3 күн бұрын
Thank you sir 🙏
@janac7510
@janac7510 3 күн бұрын
Nice
@harmeetsandhu8238
@harmeetsandhu8238 3 күн бұрын
Callout from Apex Pre-requisite is either Remote site setting or Name Credentials Callout from LWC Pre-requisite is remote site setting or CSP Trust site setting It's always a pleasure to share knowledge and make learning accessible.
@harmeetsandhu8238
@harmeetsandhu8238 4 күн бұрын
1.Post Method 2.Authentication =Checks the user Identity to provide system access Authorization=Verifies the User access right and Permission of that identity provide 3.SOAP is more secured
@harmeetsandhu8238
@harmeetsandhu8238 4 күн бұрын
Total Number of SOQL queries issued in Salesforce syc 100 /asyc 150. 1.Abstract Class have abstract method with body and In Interface Class Method without body. It will have only signature of method. 2.Apex code default Character limit 60,00,000 characters. 3.Apex is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control statements on the Salesforce platform.
@Ankit__Shaw__09
@Ankit__Shaw__09 5 күн бұрын
Hi Ankit, can we expect few more videos on this LWC interview series ? If yes, please let us know the timing as well.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 4 күн бұрын
This series is completee. Do you have any specific questions
@Ankit__Shaw__09
@Ankit__Shaw__09 2 күн бұрын
@@TechJourneyWithAnkit Recently I encountered one scenario based question in the interview. From the form we have to take 5 field input but the handler and the variable we need to use 1 and 1 only. if we use name attribute as well then also we have to do 5 if statement to take it. Intenetion is to reduce the no. of if statement. 2nd question: in account detail page there is a button create contact. on click of it only one toast msg will be shown that contact created and nothing else. I think we can use API recordID to get the account it and Wire create Adaptor to create the record, correct?
@harmeetsandhu8238
@harmeetsandhu8238 5 күн бұрын
1.anonymous Block will be running as USER_MODE 2.WITH SECURITY_ENFORCED clause Enable If there are any fields or objects referenced in the SELECT clause that are inaccessible to the user, an exception is thrown and no data is returned. 3.Yes , PermissionSetAssignment prset = new PermissionSetAssignment (PermissionSetId = myPermissionSetId, AssigneeId = myAssigneeId); insert prset;
@vikaskhose4700
@vikaskhose4700 6 күн бұрын
Sir can you please make one Play list of apex like LWC please sir we request you
@harmeetsandhu8238
@harmeetsandhu8238 5 күн бұрын
already have you can check on channel
@vikaskhose4700
@vikaskhose4700 2 күн бұрын
@@harmeetsandhu8238 no for Apex there is no any playlist. Please check
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 күн бұрын
Yes will plan for it
@vikaskhose4700
@vikaskhose4700 2 күн бұрын
@@TechJourneyWithAnkit sir please do it as soon as possible. I Request you
@shraddhatidke7079
@shraddhatidke7079 6 күн бұрын
wonderful session ....especially for a non-tech student like me....never thought JavaScript will be this easy to learn. Thank You.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 6 күн бұрын
Glad to hear that
@vivekuppala7658
@vivekuppala7658 7 күн бұрын
Hi, can we use this approach of creating same records in 3 child orgs?(if in Org A an record is created, then the same record should be created in Org B and Org C and Org D, can we use the approach you've explained in the video??) if yes can you please suggest the process
@TechJourneyWithAnkit
@TechJourneyWithAnkit 6 күн бұрын
It is not a logical scenario, buddy. Why anyone want to create this many duplicates? Your hypothetical scenario will time out
@vivekuppala7658
@vivekuppala7658 6 күн бұрын
@@TechJourneyWithAnkit hi thanks for the reply, sorry for the confusion let me correct myself We have a requirement to create user in prod by automation (we are using flow) and then based on few conditions same user should be created in lower environments which are dev, QA, UAT, can you suggest any approach to achieve this
@sasikalakesavan532
@sasikalakesavan532 7 күн бұрын
Sir you are really awesome .jus completed this..Thank you so much ..thanks for your teaching
@TechJourneyWithAnkit
@TechJourneyWithAnkit 6 күн бұрын
Glad to hear that
@Smash9332
@Smash9332 8 күн бұрын
Part 3 ?
@TechJourneyWithAnkit
@TechJourneyWithAnkit 6 күн бұрын
Will be on this Sunday !!
@user-qt9uf1bb1m
@user-qt9uf1bb1m 8 күн бұрын
in herited sharing little got confused
@TechJourneyWithAnkit
@TechJourneyWithAnkit 6 күн бұрын
Checkout this link - developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_keywords_sharing.htm
@gauravjoshi3879
@gauravjoshi3879 8 күн бұрын
thanks a lot sir for giving a deep dive
@TechJourneyWithAnkit
@TechJourneyWithAnkit 6 күн бұрын
Glad to hear that
@bbk9988
@bbk9988 9 күн бұрын
Nice video with interview related stuff👌👍. Pls continue this series 😊 Also explain these apex concepts and batch apex, security , triggers in detail through boot camps 😊
@TechJourneyWithAnkit
@TechJourneyWithAnkit 6 күн бұрын
Sure keep following !!
@Dante-yd9ou
@Dante-yd9ou 9 күн бұрын
kindly correct me If I am wrong, but I think the check in the getter method is just simply if the custom permission has some value or not, but the check should be if the current user has that permission set or not. I am simply seeing the import custompermission statement and then a getter method to return true or false, but it is not checking for the existing user (the user who is currently accessing the component). And Thank you for all the effort on the bootcamp.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 6 күн бұрын
it will check with respect to current user context
@ravigrover1923
@ravigrover1923 10 күн бұрын
code written in anonymous block will be running in user mode as you explained at the start, which is respecting sharing context
@ravigrover1923
@ravigrover1923 10 күн бұрын
The WITH SECURITY_ENFORCED clause in Apex has some limitations, including: Polymorphic lookup fields: This clause doesn't support traversing a polymorphic field's relationship in queries. Insufficient permissions: If a field is hidden, the query will throw an exception. DML operations: This clause can't be used in DML operations.
@ravigrover1923
@ravigrover1923 10 күн бұрын
Yes permissionset can be assigned as shown below: PermissionSetAssignment psa = new PermissionSetAssignment (PermissionSetId = myPermissionSetId, AssigneeId = myAssigneeId); insert psa;
@vikashchowdhary1670
@vikashchowdhary1670 11 күн бұрын
Yes, using PermissionSetAssignment object, we can assign the permission set to user via apex
@vikashchowdhary1670
@vikashchowdhary1670 11 күн бұрын
- In apex anonymous block - the code runs in the user mode, i.e. With Sharing context. - Limitation of With Security_Enforced - it does not filter the results in where clause and it throws only the 1st error. Hence, apex always recommends With User_Mode.
@vikashchowdhary1670
@vikashchowdhary1670 11 күн бұрын
With System_Mode - For running apex in system mode
@siddharthpadhi8979
@siddharthpadhi8979 11 күн бұрын
Thankyou so much sir, one of the most important sessions using lwc
@TechJourneyWithAnkit
@TechJourneyWithAnkit 9 күн бұрын
Glad to hear that
@vitthalrakh5715
@vitthalrakh5715 12 күн бұрын
Thanks Ankit ,This is very Helpful can I get pdf for this Question and ans?
@prathamkunjeer
@prathamkunjeer 12 күн бұрын
Getting an error like : Movie Search Output {Response: 'False', Error: 'Invalid API key!'} . I have formed the URL correctly also I have authorized the API key. Still getting this error ! Can you please help ?
@TechJourneyWithAnkit
@TechJourneyWithAnkit 12 күн бұрын
Recheck if you are using https or http while making any fetch request and accordingly configure remote site setting and CSP as well
@prathamkunjeer
@prathamkunjeer 11 күн бұрын
@@TechJourneyWithAnkit I have checked everything. It's as per your Video 🥲. The problem still persists 🫡 . Do you have any other Solutions?
@3fulggg
@3fulggg 12 күн бұрын
Best tutorials on LWC according to me.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 12 күн бұрын
Glad you found this helpful
@Dabbara-saiOO7
@Dabbara-saiOO7 12 күн бұрын
Sir lwc interview preparation series is completed or still anything is pending in that series
@TechJourneyWithAnkit
@TechJourneyWithAnkit 12 күн бұрын
That one is completed
@anilkumarsahu8546
@anilkumarsahu8546 12 күн бұрын
excellent!!!
@TechJourneyWithAnkit
@TechJourneyWithAnkit 11 күн бұрын
Thank you! Cheers!
@kajalchalke3832
@kajalchalke3832 13 күн бұрын
While creating http callout i am getting error: The http callout for the POST method failed. The request URL : localhost/services/data/v61.0/sobjects/isn't valid for operation DefaultOperationName and service DefaultServiceName But with the same process I have done synchronization on Account object and now I am trying to do this for contact object... and getting this error... I have changed the url path and json data(field configuration) for contact object