Blogs

  • “The REST API is not enabled for this Organization” while using Salesforce REST Api

    Check on the profile for the user. Access the profile settings in order to verify that API is enabled as well. In LEX, go to Set up | Users | Profiles. In Classic, click Setup | Administration Setup | Manage Users | Profiles. Select the profile that you need to check, and under “Administrative Permissions” verify if API Enabled is selected.

    Read more…

  • Approve Records in Bulk Using Apex

    The following sample code approves records in mass using apex. Below example just uses Account object’s record. Please feel free to update it as per your need.

    Read more…

  • Convert epoch to datetime in Apex

    We get this requirement while coding several time to convert epoch time (Unix time) to Datetime. First thing, never store a epoch time in Integer and use Long always. Below given code can be used to convert into datetime: To get the epoch from a datetime variable you can just call the getTime() instance method:

    Read more…