Blogs

  • Recalculate Formula Fields Dynamically (without save)

    From the Documentation: Recalculates all formula fields on an sObject, and sets updated field values. Rather than inserting or updating objects each time you want to test changes to your formula logic, call this method and inspect your new field values. Then make further logic changes as needed. See https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_sobject.htm Note that this method doesn’t recalculate…

    Read more…

  • Assigning permission set to user in apex

    Is it possible to assign permission setting using code? Are there any limitations to consider? YES, it’s possible as below:

    Read more…

  • How to add Apex Class Access to permission set programmatically

    In case if you are looking further, how to assign such permission sets to users automatically, here is answer: http://sfdcian.com/assigning-permission-set-to-user-in-apex/

    Read more…