Skip to Content

Documentation

Risk Cloud API: Moving Records

Within Risk Cloud, records are moved from one step to another by submitting them. In the Risk Cloud API, we call this endpoint “progressing a record”. When a record progresses, validation is done on the record fields to determine whether it can move to the next step. Alternatively, there’s another API endpoint that allows you to force move a record from one step to another without any validation. Below we outline how to configure those endpoints:

  1. Progressing a Record
  2. Force Moving a Record

In this article, we will walk through the steps necessary for moving a record to another step via the Risk Cloud API and progressing a record to the next step via the Risk Cloud API.

Authentication

Obtain your API Access Token to get started, additionally, this endpoint is limited to the Admin role, so ensure that the creator of the API Key used has the Admin role entitlement. This is necessary for both methods listed in this article.

Progressing a Record

Note: This method will only progress the record if all required fields on the record are completed.

Step 1: Obtain the record-id

The record-id can be obtained from the Risk Cloud web application, emails, or via the Risk Cloud API. If you already know your record-id you may continue to Step 2: Obtain the step-id

Using the Risk Cloud application

The most straightforward way to find the record ID for record-id is to open the desired record in Risk Cloud, then take the ID from the end of the URL.

https://your-company.logicgate.com/records/{record-id}

Using email

The Contextual Notifications feature offers the ability to set Custom Fields and System Fields in outbound emails. As a result, Record ID is a System Field that can be included in outbound emails from the Risk Cloud. This Record ID could in turn be parsed from the email for use in the following Post Record Comment API request.

Using the Risk Cloud API

Reference the article Risk Cloud API: Record Search to obtain record IDs via the Risk Cloud API.

2. Obtain Required Data

Using the Risk Cloud API

To search for the record information, use the Records endpoint.

3. Progress Record

In this step, we will use the record-id , applicationId, workflowId, and step-id found in the previous steps to progress the record.

Path ParameterDescription
record-idThe unique ID of the record to move
applicationIdThe application ID of the record to move
workflowIdThe workflow ID of the record to move
step-idThe unique ID of the step to move the record to
Sample Request Body

The request body will look something like this for this PUTrequest.

{
    "id": "{{record-id}}",
    "step": {
        "id": "{{step-id}}",
        "stepType": "{{step-type}}"
    },
    "assignee": {
        "id": "{{user-id}}",
        "status": "Active"
    },
    "assigneeType": "none",
    "user": {
        "id": "{{user-id}}",
        "status": "Active"
    },
    "workflow": {
        "id": "{{workflow-id}}",
        "workflowType": "WORKFLOW"
    }
}
Response

A 200 response with JSON confirming the the structure and status of the moved record.

{
  "active": true,
  "created": "2024-09-11T16:20:56.965Z",
  "fields": [
    {
      "currentValues": [
        {
          "active": true,
          "archived": true,
          "created": "2024-09-11T16:20:56.965Z",
          "discriminator": "string",
          "id": "string",
          "numericValue": 0,
          "temporalValue": "2024-09-11T16:20:56.965Z",
          "textValue": "string",
          "updated": "2024-09-11T16:20:56.965Z",
          "valueType": "string"
        }
      ],
      "fieldType": "string",
      "id": "string",
      "label": "string",
      "name": "string",
      "operators": [
        "EQUALS"
      ],
      "readOnly": true,
      "required": true
    }
  ],
  "id": "string",
  "name": "string",
  "primaryFieldValue": "string",
  "public": true,
  "recordDueDate": "2024-09-11T16:20:56.965Z",
  "status": "INACTIVE",
  "updated": "2024-09-11T16:20:56.965Z",
  "workflowDueDate": "2024-09-11T16:20:56.965Z"
}

Force Moving a Record

Note: This method will force move the record without doing any validation on the record itself.

Step 1: Obtain the record-id

The record-id can be obtained from the Risk Cloud web application, emails, or via the Risk Cloud API. If you already know your record-id you may continue to Step 2: Obtain the step-id

Using the Risk Cloud application

The most straightforward way to find the record ID for record-id is to open the desired record in the Risk Cloud web application, then take the ID from the end of the URL.

https://your-company.logicgate.com/records/{record-id}

Using email

The Contextual Notifications feature offers the ability to set Custom Fields and System Fields in outbound emails. As a result, Record ID is a System Field that can be included in outbound emails from the Risk Cloud. This Record ID could in turn be parsed from the email for use in the following Post Record Comment API request.

Using the Risk Cloud API

Reference the article Risk Cloud API: Record Search to obtain record IDs via the Risk Cloud API.

2. Obtain the step-id

Using the Risk Cloud application

Open the desired step from the builder page located at Build > Applications > (Select a Step) in Risk Cloud, then take the ID from the end of the URL. Ensure that this is a valid step on the same workflow that the record represents.

https://your-company.logicgate.com/build/steps/{step-id}

Using the Risk Cloud API

The Steps API, provides a paginated means of iterating through all resources entitled to the API user.

To search for an application, use the Retrieve Steps endpoint.

3. Moving Records

In this step, we will use the record-id and step-id found in the previous steps to move the record.

Path ParameterDescription
record-idThe unique ID of the record to move
step-idThe unique ID of the step to move the record to
Sample Request Body

The request body can be empty for this PUT request.

 
Response

A 200 response with JSON confirming the the structure and status of the moved record.

{
  "id": "a1b2c3d4",
  "active": true,
  "created": 1706651975544,
  "updated": null,
  "sequenceId": 1,
  "status": "COMPLETE",
  "name": "A-1",
  "viewableTitle": "A-1",
  "initialStateEndStep": false,
  "workflowDueDate": null,
  "recordType": "RECORD",
  "isPublic": false
}