Blogs

  • Manage Article in Salesforce using Apex

    Create a new article Publish a draft Article Set a schedule for archiving a published article “Please be aware that if the scheduledDate is left blank or set as null, the article will be archived right away.” Abort the scheduled archiving of a published article Remove an article from the archived section Delete a draft…

    Read more…

  • How to query Approval Step Comment in Salesforce

    Salesforce stores the comment in object called – ProcessInstanceStep. So you can query like this:

    Read more…

  • Enum for Salesforce Apex Trigger Operations

    The System.TriggerOperation enum has the following values: The new Trigger context variable Trigger.operationType will return System.TriggerOperation enum during trigger context. If you combine this new context variable and the new Apex switch feature, trigger code becomes much easy to implement and understand. An Example of Using Switch and Enum in Triggers

    Read more…