Lets consider a scenario, where we have a lwc component and this lwc components shows the accounts. Now if you want that accounts from this lwc component must be visible by considering the sharing ( an example is that account that are owned by you must only be visible because owd is private) in that case we need to providd with sharing keyword. But if we wanna show the records irrespeictibe of sharing then go with without sharing
Excellent explanation
interesting...👌
Good Explanation sir keep doing more videos
Thanks, glad you found it useful ☺
Definitely an interesting explanation with simple example. Thanks.
Thankss
thank you. nice and practical explaination. really helpful :)
Thanks ☺🙏
Hello,
Great explanation again!
Can you briefly explain best practices for using 'with sharing' and 'without sharing'? Like when to use what.
Lets consider a scenario, where we have a lwc component and this lwc components shows the accounts.
Now if you want that accounts from this lwc component must be visible by considering the sharing ( an example is that account that are owned by you must only be visible because owd is private) in that case we need to providd with sharing keyword.
But if we wanna show the records irrespeictibe of sharing then go with without sharing
@@salesforcein5minutes Thankyou for the explanation! I've subscribed to your channel since it's helped me understand many concepts.
@@Adventourer__ i am glad you are finding my channel helpful ☺
Can you explain why we need without sharing when apex already run in system mode?
Great ❤
Thanks 😄
Please make one video for System context Vs User Context
Sure next video will be on the same topic 👍
One question arises, if without sharing is by default, then why do we even need that keyword. We should only need with sharing
Techniques for becoming proficient with the trigger
Will upload soon regarding the real time scenarios of triggers which will help build good logic