---
schema_version: "1"
id: fd4ce54c789033a70fdc3a07463f6af44f5bf42cf701a6722d2148d2c8ec97b9
title: Configure a Data Extension to Store a Data Action Payload
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/data/264-0-0/c360_a_data_extension_data_action_payload.md
canonical_url: https://help.salesforce.com/s/articleView?id=data.c360_a_data_extension_data_action_payload.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b73336b8b6afbd5daf3d540043c6978f8a4f43199cbed8b108ee9dbc5146c33a
description: If you’re using a Marketing Cloud Engagement data action target to enrich a data action, configure a data extension to store the data action payload.
products:
  - Data 360
release: "264"
---
# Configure a Data Extension to Store a Data Action Payload

If you’re using a Marketing Cloud Engagement data action target to enrich a data action, configure a data extension to store the data action payload.

1. Create a data extension with two attributes: one for storing the subscriber key, and the other for storing the nested JSON payload.
    
    - Subscriber key
        
        - Name: Match the Data Cloud object’s field API name
        
        - Data Type: Match the Data Cloud object’s field data type
    - Nested JSON payload
        
        - Name: Match the Data Cloud data graph API name
        
        - Data Type: Text
        
        - Length: Up to 4000 characters (the length can vary based on your output payload and the number of supported characters in Marketing Cloud.)
2. For both attributes, select **Nullable** and leave **Default Value** empty.
    
    After creating the data extension, parse the data graph data from the attribute using a supported scripting language in Email Studio.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-data-data_cloud-264-0-0-production-enus/f3569962-3c9b-4f83-9d0c-b6a574e785da/images/icon_example.png)

Example Sample AMPscript to parse the nested JSON payload

```
%%[
    SET @NESTEDDG = Concat('[', AttributeValue("WebinarDataGraph"), ']')

    /* Extract root level fields */
    SET @RS = BuildRowsetFromJson(@NESTEDDG, '$.[*]', 1)
    SET @Row = Row(@RS, 1)
    SET @Id__c = Field(@Row, "Id__c")
    SET @PersonName__c = Field(@Row, "PersonName__c")
    SET @TitleName__c = Field(@Row, "TitleName__c")
    SET @LastName__c = Field(@Row, "LastName__c")

    /* Extract nested JSON array pzn_UnifiedLoyaltyBalance__cio */
    SET @LoyaltyArray = BuildRowsetFromJson(@NESTEDDG, '$.[*].pzn_UnifiedLoyaltyBalance__cio[*]', 1)
    SET @LoyaltyArrayRow = Row(@LoyaltyArray, 1)
    SET @totalpoints__c = Field(@LoyaltyArrayRow, "totalpoints__c")
    SET @unifiedindividualid__c = Field(@LoyaltyArrayRow, "unifiedindividualid__c")
]%%
```

#### See Also

- [_Salesforce Help_: Create a Data Extension in Contact Builder](https://help.salesforce.com/s/articleView?id=sf.mc_cab_create_a_new_data_extension.htm&language=en_US)
- [_Salesforce Help_: Personalization in the Journey Builder Email Activity](https://help.salesforce.com/s/articleView?id=mktg.mc_jb_personalization_in_the_journey_builder_send_email_activity.htm&type=5&language=en_US)
- [_Salesforce Help_: Create a Data Action in Data 360](https://help.salesforce.com/s/articleView?language=en_US&id=sf.c360_a_create_a_data_action_in_customer_data_platform.htm)