Loading
Salesforce now sends email only from verified domains. Read More
Insurance
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          InsPolicyService:getOutOfSequenceEndorsementStatus

          InsPolicyService:getOutOfSequenceEndorsementStatus

          Use this service to retrieve the current status of the OutOfSequenceEndorsement async job. The service accepts jobId, policyId, or referencePolicyNumber as an input to fetch the out-of-sequence endorsement operation status.

          Class: InsPolicyService

          Method: getOutOfSequenceEndorsementStatus

          How It Works

          1. The service takes jobId or policyId or referencePolicyNumber as an input parameter. When you pass more than one input parameters in the request, the jobId takes precedence, then policyId and then referencePolicyNumber.

            Important
            Important If you pass more than one of the accepted parameters and any one of them is invalid, the service returns an error.
          2. The service retrieves the current status of the OutOfSequenceEndorsement process. The possible values are:

            • WaitingToProcess - The job is in the queue.

            • InProgress - The endorsement is in progress.

            • Success - The endorsement is successful and new policy versions are created.

            • Failed - The endorsement failed.

            • Aborted - The admin aborted the operation.

          3. The service returns the status of latest jobId for a given policy based on the createdDate. For example, if a policy has more than two out-of-sequence endorsed in a period, the status of the last out-of-sequence endorsement is returned.

          Inputs

          You must pass one of these inputs:

          Input Description
          jobId The async job ID that's returned by OutOfSequenceEndorsement job.
          policyId The policyId of the latest policy version that's endorsed.
          referencePolicyNumber The reference policy number of the endorsed policy.

          Input JSON

          Here's the sample input JSON:

          {
             "jobId": "7075j00004uK6GjAAK"
               
              or
           
             "policyId": "0YT5w000000Y8MNGA0"
           
              or
           
              "referencePolicyNumber" "0YT5w000000Y8MNGA0"
          }   

          Output

          Option Description
          jobId The async job ID for the OutOfSequenceEndorsement process. If you didn't pass a jobId as input and want to know what it is, you can get it from the output.
          status The status of the outOfSequenceEndorsement process. Possible values are: WaitingToProcess, InProgress, Success, Failed, Aborted.
          error The error message that's returned when a job fails.

          Output JSON

          Here's the sample output JSON:

          {
                "status": "Success",
                "jobId": "7075j00004uK6GjAAK",
                "errorCode": "INVOKE-200",
                "error": "OK"
          }
           
          Loading
          Salesforce Help | Article