5:14 For the candidate/interviewer question, can we not use record-triggered flow to create/delete share records based on interviewer lookup field update?
Hello Ankit if we use Time-dependent flow for both setup and non-setup object in a single flow ,it with take either Scheduled path or sync. flow so in one flow two operation at a same time not possible
Hi Ankit, Thanks for this scenario based interview question series, eagerly waiting for next part. Please find below my answers for the questions: 1. @AuraEnabled limitations User must have permission to access the Apex class
2. restrict users from accessing the salesforce outside of regular business hours - Under profile of user we can define Login Hours 3. What if user is logged in when their login hours end - user will be able work even if it is outside of defined working hours but if he logs out then he cannot.
4. keep track of changes made to the metadata and setup configurations in salesforce - View setup audit trail
3. it will logout if we navigate to any tab or page or the page will not respond once the user crosses the login hours. i faced a similar scenario. @TechJourneyWithAnkit correct me if I am wrong
@@TechJourneyWithAnkit for the first I was saying user should have access to the Apex class in which @AuraEnabled method defined. Will you please share the answer; I could not found much about it. for the third I was wrong thanks for correcting me - If users are logged in when their login hours end, they can continue to view their current page, but they can’t take any further action.
@@ShahbazKhan-hz4ds 1. Users must have permission to access the apex class. 2. An Apex method annotated with @AuraEnabled(Cacheable=true) cannot have a DML method when invoked from a Lightning component. To perform DML, remove cacheable=true and use it imperatively. 3. You can't use a Set parameter with an @AuraEnabled method.
@@TechJourneyWithAnkit I have this question once asked in interview - OWD for object is Read Only , Profile has CRED , Sharing rule that grants user Edit / read access .....As per your earlier video , most restrictive settings wins which is Read only here but user is able to edit the record . How ? Is it because Profile setting supersedes everything other settings ?
@@awesomekj5812 This is because of Sharing rule. Delete sharing rule and access will be read only. Record level security is handled by OWD and Sharing rule. Profile is for objects/fields security.
1. -> Users must have permission to access the apex class. -> An Apex method annotated with @AuraEnabled(Cacheable=true) cannot have a DML method when invoked from a Lightning component. To perform DML, remove cacheable=true and use it imperatively. Login hours You can't use a Set parameter with an @AuraEnabled method. 2. Login hours in Profile. User can see current page, but can't do anything else. 3. Setup Audit trail.
Very useful. Thank you very much!
Glad you found this helpful
Very great explanation Ankit. Could you please let me know which app you use in video/screen recording purpose?
Thanks Shubham. It is OBS studio
5:14
For the candidate/interviewer question, can we not use record-triggered flow to create/delete share records based on interviewer lookup field update?
Yes that will also work
If users are logged in when their login hours end, they can continue to view their current page, but can’t take any further action.
Correct
Hello Ankit, can you make any videos on Vlocity Development as well.
Your videos are really helpful, thank you for the questions you provided
Not much experience on velocity
Hello Ankit
if we use Time-dependent flow for both setup and non-setup object in a single flow ,it with take either Scheduled path or sync. flow so in one flow two operation at a same time not possible
Point to be noted.... Share object only available if Objects OWD is private.
Correct, that's important to remember!
Hi Ankit,
Thanks for this scenario based interview question series, eagerly waiting for next part.
Please find below my answers for the questions:
1. @AuraEnabled limitations
User must have permission to access the Apex class
2. restrict users from accessing the salesforce outside of regular business hours
- Under profile of user we can define Login Hours
3. What if user is logged in when their login hours end
- user will be able work even if it is outside of defined working hours but if he logs out then he cannot.
4. keep track of changes made to the metadata and setup configurations in salesforce
- View setup audit trail
Recheck third one.
For first one, you are talking about Apex consideration, ask for @AuraEnabled method
3. it will logout if we navigate to any tab or page or the page will not respond once the user crosses the login hours. i faced a similar scenario. @TechJourneyWithAnkit correct me if I am wrong
@@TechJourneyWithAnkit for the first I was saying user should have access to the Apex class in which @AuraEnabled method defined.
Will you please share the answer; I could not found much about it.
for the third I was wrong thanks for correcting me
- If users are logged in when their login hours end, they can continue to view their current page, but they can’t take any further action.
@@ShahbazKhan-hz4ds 1. Users must have permission to access the apex class.
2. An Apex method annotated with @AuraEnabled(Cacheable=true) cannot have a DML method when invoked from a Lightning component. To perform DML, remove cacheable=true and use it imperatively.
3. You can't use a Set parameter with an @AuraEnabled method.
Very good ...I knew most of it ..but I am stumped at limitation of @auraenable method ..
Good to know and do more research on this
@@TechJourneyWithAnkit I have this question once asked in interview - OWD for object is Read Only , Profile has CRED , Sharing rule that grants user Edit / read access .....As per your earlier video , most restrictive settings wins which is Read only here but user is able to edit the record . How ? Is it because Profile setting supersedes everything other settings ?
@@awesomekj5812 This is because of Sharing rule. Delete sharing rule and access will be read only. Record level security is handled by OWD and Sharing rule. Profile is for objects/fields security.
1.
-> Users must have permission to access the apex class.
-> An Apex method annotated with @AuraEnabled(Cacheable=true) cannot have a DML method when invoked from a Lightning component. To perform DML, remove cacheable=true and use it imperatively.
Login hours You can't use a Set parameter with an @AuraEnabled method.
2. Login hours in Profile. User can see current page, but can't do anything else.
3. Setup Audit trail.
Third one you spotted correcty on @AuraEnabled methods
Rest all are correct too
Hi Ankit Bro,
These scenarios are related How Many Years experience
2 -5 years
@@TechJourneyWithAnkit Thank You Ankit Bro
Hey, As a fresher it is difficult for me to understand this quickly, so is it ok for me or i have to work hard
It is completely fine. It has a mixed set of questions