5 Replies Latest reply on Oct 16, 2020 6:00 PM by Damon Gravning

    When "Secure guest user record access" has been enabled in Salesforce, I am getting an error updating a BMCServiceDesk__Change_Request__c with APEX.

    Damon Gravning
      Share This:

      When "Secure guest user record access" has been enabled in Salesforce, I am getting an error updating a BMCServiceDesk__Change_Request__c with an APEX class.

       

      Update failed. First exception on row 0 with id ; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY,

      BMCServiceDesk.ChangeRequestTrigger: execution of BeforeUpdate

       

      caused by: System.NullPointerException: Attempt to de-reference a null object

      Class.BMCServiceDesk.ChangeRequestTriggerHandler.applyTemplateToChange: line 914, column 1

      Class.BMCServiceDesk.ChangeRequestTriggerHandler.beforeUpdateOperations: line 47, column 1

      Trigger.BMCServiceDesk.ChangeRequestTrigger: line 78, column 1