Blogs

  • Invoking Apex method periodically from a Lightning Component.

    I recently learned that Salesforce Lightning Community does not provide support for Streaming API or Events APIs. Consequently, using EMAPI on AURA/LWC for communities is not possible. This prompted me to explore a workaround using an AURA component.

    Read more…

  • System.LimitException: Too many query rows: 50001

    PROBLEM This error occurs when you are trying to return more than 50000 records from the SOQL query. In order to resolve the issue either you will have to limit the number of records returned from the SOQL or you will have to process them in the chunks. Example: WORKAROUD

    Read more…

  • How can we query an Entitlement Process through Apex

    Actual Object name to access from API is SlaProcess and in UI it is EntitlementProcess Ideally Account will linked with Entitlement and Entitlement is linked with SlaProcess (aka EntitlementProcess). So your query to get AccountId based on Entitlement and SlaProcess will be:

    Read more…