Step 2: Run DataMasker from DevOps – Copado

*This step is Optional

Overview

Data Masking is a process to mask all sensitive data available in Sandbox which will prevent developers or other users from viewing sensitive data. In the particular use cases where the Data Masking needs to be invoked by an external system, Cloud Compliance offers an API interface for masking sensitive data.

This document explains how to invoke Data Masking configurations that are pre-configured via APEX based callout. The API performs data masking of sensitive data in the relevant sandbox whose details are provided in the configuration.

The APEX APIs that are developed for this requirement are as follows – 

1. Navigate->Configurations tab of the Data Masker application.

21.png

2. Click on the Configuration name. In this case, Click on ‘APEX API – UAT sandbox’.

22.png

3. Copy the Configuration id and paste this id in the APEX API script that needs to be executed for data masking.

23.png

Solution Steps

1. Navigate-> Copado Release Management app and Make sure that ‘Destination org’ should be connected in Deployments.

4.png
5.png

2. Select ‘Apex’ from the type of call-outs and use our Data Masking API to execute data masking. The input parameter is the Configuration Id which was copied above for eg. ‘5856347d64232790a3157ca39f341477’

pcldm.DM_DataMaskingService.execute('5856347d64232790a3157ca39f341477');

3. Click on ‘Deploy’ and then ‘Deploy All’

6.png
7.png

4. Check The Status

8.png
9.png

5. You can check the execution status in the Data masker.

10.png

Powered by BetterDocs