Salesforce

Creating Test Data for Collection Points

« Go Back
Information
Creating Test Data for Collection Points
UUID-9c46ac13-2e15-4cb1-be80-3e3a853a5865
Article Content

You can test end-to-end Collection Point workflows by creating receipts using test data subjects, which can help you evaluate and make adjustments to the Collection Point configuration before publishing. Generating receipts using any of the methods listed below will result in the creation of a test data subject. Data subjects created via testing workflows can be easily identified using the Test label that appears for the data subject on the Data Subjects and Data Subject Details screens.

Note

You can apply the Test Status filter on the Data Subjects screen to narrow down the list of data subjects to only those labeled with Test, which can help you quickly identify and delete test data as needed.

Test_Data_Subjects.png

Web Form Collection Point Preview

You can generate receipts and create test data subjects for Web Form type Collection Points directly in the application using the Preview tab.

  1. On the Universal Consent & Preference Management menu, select Interfaces > Collection Points. The Collection Points screen appears.

  2. Click the link in the Name column for the Collection Point you want to test. The Collection Point Details screen appears.

  3. Click the More tab and select Preview. The Preview tab appears with a form simulating how the Collection Point would embed into a web site.

    Web_Form_Collection_Point_Preview_tab.png
  4. Enter the necessary data element values and select the purposes and purpose preferences for your test receipt.

  5. Click the Send button. A receipt will then be generated with the corresponding transactions. In addition, the data subject will be created and labeled with Test on the Data Subjects and Data Subject Details screens.

Testing Collection Points in Draft Status

You can generate receipts and create test data subjects for Collection Points in Draft Status by making POST calls to https://{BASEURL}/request/v1/consentreceipts.

Note

For more information on the Consent Receipts API, see Implementing the Collection Point with REST API.

  1. On the Universal Consent & Preference Management menu, select Interfaces > Collection Points. The Collection Points screen appears.

  2. Click the link in the Name column for the Collection Point you want to test. The Collection Point Details screen appears.

  3. Navigate to the Integrations tab and click the Custom API button.

  4. Scroll down and click the Copy Expected Payload button.

  5. Navigate to your external application used for API integrations.

  6. Paste the copied payload into the Request Body for the Consent Receipts API, and enter the identifier for your test data subject.

  7. Send and create the payload. A receipt will then be generated with the corresponding transactions. In addition, the data subject will be created and labeled with Test on the Data Subjects and Data Subject Details screens.

Testing Collection Points in Active Status

You can generate receipts and create test data subjects for Collection Points in Active status by including a "test" parameter when making POST calls to https://{BASEURL}/request/v1/consentreceipts.

Note

For more information on the Consent Receipts API, see Implementing the Collection Point with REST API.

  1. Navigate to your external application used for API integrations.

  2. In the Request Body for the Consent Receipts API, enter the identifier for your test data subject and add the "test":true parameter.

    The following is a snippet of the code including the test parameter.

    {
      "identifier": "bthompson@email.com",
      "test": true,
      "requestInformation": "{JWT TOKEN}", 
    ...
  3. Send and create the payload. A receipt will then be generated with the corresponding transactions. In addition, the data subject will be created and labeled with Test on the Data Subjects and Data Subject Details screens.

 
Article Visibility
1,507
Translation
English
Checked

Powered by