Forum Replies Created

  • Apex class can be written in two category:-

    1. With sharing keyword:- If you declare a class as a With Sharing, Sharing rules given to the current user will be taken into the consideration and the user can access or perform the operations based on the permissions given to him on object and fields (Field Level Security, Sharing rules).
    2. Without sharing keyword:- If you declare a class as a Without Sharing, then this Apex class runs in system mode which means Apex code has access to all the objects and field irrespective of current users sharing rules, field level security and Object Permissions.

    Ideally, for visualforce page, apex classes should run in with sharing to enable permission applicable for a user based on their profile.

    Thanks

    Abhishek shahi

  • Hi Rajni,

    You are trying to add value in both cases either if or else, As per my analysis you just need one if condition to filter out appropriate records as per your requirement.

    Thanks

  • ABHISHEK

    Member
    January 9, 2018 at 11:03 am in reply to: What is the difference between SaaS and PaaS concepts in Salesforce?

    Hello Suryadeep,

    Software as a Service (SaaS) - Its represent the largest cloud market and are still growing quickly. SaaS uses the web to deliver applications that are managed by a third-party vendor and whose interface is accessed on the clients’ side. Most SaaS applications can be run directly from a web browser without any downloads or installations required, although some require plugins.

    Platform as a Service (PaaS) -  It is used for applications, and other development, while providing cloud components to software. What developers gain with PaaS is a framework they can build upon to develop or customize applications. PaaS makes the development, testing, and deployment of applications quick, simple, and cost-effective. With this technology, enterprise operations, or a third-party provider, can manage OSes, virtualization, servers, storage, networking, and the PaaS software itself. Developers, however, manage the applications.

Popular Salesforce Blogs

Popular Salesforce Videos