Link SOC 2 documents to entity
This guide explains how to use a Workflow to streamline the process of linking SOC 2 documents to an entity.
Create a Workflow to link SOC 2 documents to an entity
Prerequisites
Before getting started:
You must have the
Edit Workflowspermission to create the Workflow, and theExecute Workflow runspermission to run it.
Step 1: Create the Workflow
You can create a Workflow in the Cortex UI or via the Cortex CLI.
Add the Workflow via CLI
You can use the Cortex CLI to add the example Workflow to your workspace. This allows you to quickly set up the example configuration then iterate on it for your own use case. Expand the tile below to learn more:
Step 1.1: Create the Workflow and configure basic settings
In Cortex, navigate to Workflows. In the upper right corner, click +Create workflow. Choose a blank Workflow.
Follow the documentation to configure the basic settings for your Workflow.
Step 1.2: Add blocks to the Workflow
Add the following blocks to your Workflow:
When you are finished adding blocks, click Save workflow in the upper right corner of the page.
Step 2: Run the Workflow
In the list of Workflows, locate the "Link SOC 2 Documents to Entity" Workflow and click Run.
When you run the Workflow, the following events happen:
The Workflow pauses to collect a response from the user during the User Input block. The user selects an entity, then enters a link type and link URL.
The next step runs, retrieving the entity descriptor.
The JavaScript block runs, which does the following:
It retrieves the entity descriptor from the previous block, and it retrieves the link type and URL from the initial block. It validates that the required inputs exist.
It normalizes the link type. It parses the descriptor string into a JavaScript object.
It creates a new link object with url, name, and type, and it only adds the new link if it doesn't already exist.
It converts the updated object back to YAML format, and returns
{ updatedDescriptor }for use in subsequent Workflow blocks.
The "Create or update entity" block runs, updating the entity with the
updatedDescriptoroutput of the previous block.
Last updated
Was this helpful?