Exporting third-party master DCRs

AD
DM

Data change requests (DCRs) for third party master are assigned to the third party system that owns the record in Network. These DCRs must be extracted and exported to the third-party provider to process. If they are not exported, the records will not be updated in Network with the requested changes.

DCR process for third-party mastered records

  1. Extract the DCRs for the third-party master system.

    This can be done through the following methods:

    • Target subscription - The DCR export job creates two files (DCR_BATCH, DCR_FIELD_BATCH) that contain the requested changes and any add requests.

    • Network API - For details, see the API: Third-party integration topic in the Veeva Network Developer Help.

  2. Retrieve the files from the Network FTP server and send them to the third-party data provider.

  3. Third-party data stewards update the DCR_BATCH file by adding CHANGE_ACCEPTED or CHANGE_REJECTED to the Results column.

  4. Receive the updated DCR file from the third-party data provider and add it to the Network FTP server.

  5. Use the third party master feed (source subscription) to import the updated DCR file back into Network. The contents of the file will update the DCR tasks in Network. The data files included with the master feed will make any updates to the affected third-party records.

About the DCR export file

Only fields that are identified as externally managed by the third-party master system are included in the exported DCR file. Fields that are managed by local data stewards (gray fields) are filtered out.

Note: During a DCR export, no data (including data entities, source data, or reference data) is exported.

DCR export subscription

To configure the subscription:

  1. In the Admin console, select System Interfaces > Target Subscriptions. At the top of the Target Subscriptions page, click Add Subscription.
  2. In the Details section, provide the following information:
    • Name: This value is mandatory and must be short.

      Special characters and spaces are not supported. Use underscores in place of spaces.

    • Code: Displays after the target subscription is saved.

      The code is automatically generated from the name of the target subscription and is used for exporting Network configurations. The code does not change if the subscription name changes.

    • System: Select the third-party master system.

      Network will extract the DCRs for the records owned by this system.

    • Description: Provide a meaningful description that is helpful to other users.
    • Status: New subscriptions are Enabled by default. They can be inactivated when they are no longer regularly used. For more information, see Inactive subscriptions.
  3. In the General Export Options section, define the DCRs and details to export.

    • Full Data Extract

      • Full - Export all DCRs submitted for this third-party provider.

      • Delta - (recommended) Export only the DCRs that were created since this subscription ran last.

    • DCR Status

      • Pending Only - (recommended) Export DCRs that have not yet been processed.

      • All DCRs - Export DCRs with all task statuses.

    • Save Delta State - (Applies to Full DCR exports only). Choose this option if you want the export to save the last delta IDClosed A number assigned to a record that is incremented every time that a record is updated in any way. that is exported as the delta state.
    • Include Parent HCO Master Key - Include the master key of the parent HCO when a DCR with a relationship is exported.

      This is helpful so a third-party provider can easily identify the parent HCO and process the DCR.

      Three columns will be added to the exported file:

      • PARENT_ENTITY_CUSTOM_KEY_SOURCE

      • PARENT_ENTITY_CUSTOM_KEY_TYPE

      • PARENT_ENTITY_CUSTOM_KEY_VALUE

      The columns contain the active custom key of the related parent HCO object for the selected third party system. If there are no active custom keys on the parent HCO object, or if the ENTITY_TYPE of the row is not "RELATION", these columns are empty.

    • Multiple value fields delimiter - Define the delimiter for multivalued fields that are sent to downstream systems.

      Change the delimiter if the downstream system expects a different delimiter.

      The following delimiters are supported:

      • , (comma) (default)

      • : (colon)

      • ; (semi-colon)

      • tab

      • | (pipe)

    • Format and Encoding is automatically set to CSV and UTF-8 respectively.

    • Network FTP Path - Choose the Default path or identify a Custom path.

      • Default path: outbound/<system_name>.

      • Custom path - Administrators can give users specific access to FTP folders, so identifying a custom path for this subscription enables you to protect the data.

        Custom paths are not validated, so ensure that they are correct so your job does not fail.

        For more information about identifying FTP folder access for users, see Add a user profile.

      For information about accessing the files in your Network file system, see File Explorer.

    • Export to Cloud Storage - Export the data directly to your private cloud storage. Exporting to Amazon S3 buckets are supported.

      The Amazon S3 bucket must be created with write access so you can export the files. For more information, see Exporting data to cloud storage.

      External Credential Location - If you chose Export to Cloud Storage, this setting displays. Select the Amazon S3 credential from the list or click the link to create the credential. Click Test Connection to ensure that the credentials are valid.

      Note: The files are always exported to your FTP folder so Network FTP Path remains selected if you also choose Export to Cloud Storage.

  4. Transformation Rules (optional) - Apply rules to transform the data before it's exported to the third-party system. Create transformation rules using Network Expressions for the third-party system, object, and field.

    For details, see Transformation rules.

  5. Transformation Queries (optional) - Apply queries to the target subscription to post-process the DCR export files (third-party owned DCRs). For example, you can transform the third-party DCRs in a format that a third-party system might expect to receive. For example, see Transform DCR export files.

    The queries will transform the data within Network before exporting it in the target subscription.

    Example

  6. In the Job Schedule section, choose to run the subscription manually or on a scheduled basis. If you select Manual, the subscription only runs when you click the Start Job button on the subscription page.
  7. You can choose to trigger other actions to start after a job runs. For more information, see Subscription job triggers.
  8. Save your changes and run the job.

Job history

The job history for the subscription indicates the number of DCRs processed for each entity type along with the export path for the DCR files. The DCR Line Items count indicates the number of rows in the DCR_FIELD_BATCH file.

Exported files

After the job runs, the exported archive files are saved in the Network FTP path for the target subscription, within a sub-folder named for the third-party system.

The archive file, for example, Third_party_DCRS_180109T112242447, contains two files:

  • DCR header file (DCR_BATCH) - Contains the DCR header information. The file is timestamped in Epoch time.
  • DCR line items file (DCR_FIELD_BATCH) - Contains information for each field added or changed through the DCR. The file is timestamped in Epoch time.

DCR header

Example file

DCR line items

Example file

Next steps

To complete the DCR process:

  1. Send the exported DCR files to the third-party data provider to process.

    The third-party data stewards must update the Results column in the DCR_BATCH file with one of the following values:

    • CHANGE_ACCEPTED

    • CHANGE_REJECTED

  2. Retrieve the completed DCR_BATCH file from the third-party data provider.

  3. Import the updated DCR_BATCH file back into Network using the source subscription that is the third-party master data feed. For details, see Importing third-party DCRs.