Loading
Important Advisory: iOS Update Impacting CG Mobile ApplicationRead More
Insurance
InsAsyncBulkService:getRequestStatusById

InsAsyncBulkService:getRequestStatusById

Use this service to get the status of the async bulk request and its details associated with the request.

Class: InsAsyncBulkService

Method: getRequestStatusById

How It Works

  1. The service takes the Id of insurance async bulk request as input.
  2. The service then retrieves the details of async bulk request whose Id is provided as input.
  3. The service populates the output map with the request details.
  4. If isAdditionalInfo paramater is set to true, the service adds the AdditionalInformation field value of the bulk request to the outputMap.
  5. The service then generates the output map.

Input Options

Input Description
requestId

Required

The ID of the insurance async bulk request

isAdditionalInfo

Optional

If isAdditionalInfo is set to true, then the AdditionalInformation field value of the bulk request is added to the outputMap.

Input JSON

Here's the sample input JSON when isAdditionalInfo is set to false:

{      
    "requestId": "0rfxx000000001dAAA",
    "isAdditionalInfo": false
}

Output JSON

Here's the sample output JSON when isAdditionalInfo is set to false:

{
  "name": "Insurance_Enrollment",
  "createdDate": "Thu Nov 16 05:23:06 GMT 2023",
  "status": "Completed",
  'jobCount": 3,
  'pendingJobCount": 0,
  "successfulJobCount": 1,
  "failedJobCount": 2,
  "cancelledJobCount": 0,
  "erroredJobCount": 0,
  "requestItems" : [
  {
    "status": "Completed",
    "planName": "Dental Premium",
    "batchJobId": "18cSG00000UfdYAE",
    "id": "18cxx0000004DUuAAM"
  },
  {
    "status": "Completed",
    "planName": "VSP Premium",
    "batchJobId": "18cSG00000UfdYAA",
    "id": "18cxx0000004DUuMAA"
  }
  ]
 }

Input JSON

Here's the sample input JSON when isAdditionalInfo is set to true:

{      
    "requestId": "0rfxx000000001dAAA",
    "isAdditionalInfo": true
 
}

Output JSON

Here's the sample output JSON when isAdditionalInfo is set to true:

{      
  "name": "Insurance_Enrollment",
  "createdDate": "Thu Nov 16 05:23:06 GMT 2023",
  "status": "Completed",
  'jobCount": 3,
  'pendingJobCount": 0,
  "successfulJobCount": 1,
  "failedJobCount": 2,
  "cancelledJobCount": 0,
  "erroredJobCount": 0,  
  "requestItems" : [
    {
        "status": "Completed",
        "planName": "Dental Premium",
        "batchJobId": "18cSG00000UfdYAE",
        "id": "18cxx0000004DUuAAM"
    },
    {
        "status": "Completed",
        "planName": "VSP Premium",
        "batchJobId": "18cSG00000UfdYAA",
        "id": "18cxx0000004DUuMAA"
    }
    ],
  "additionalInformation":{
                               "batchJobDetails":[{
                                    "batchJobId":"0mdxx0000000001AAA",  
                                    "productName":"prod1",                            
                                    "productId":"0rk1000000001dAAA"
                                                 }]
                            }
 
}
 
Loading
Salesforce Help | Article