{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":16902,"path":"governance-risk-compliance/grc-common-functions/configure-data-columns.md","title":"Configure data columns","bundle":null,"doc_type":null,"release":"australia","body":"\n# Configure data columns\n\nConfigure data columns to include table fields or scripted content in your report. Format scripted content as text or HTML.\n\n## Before you begin\n\nRole required: sn\\_grc\\_doc\\_design.admin or sn\\_audit.admin\n\n## Procedure\n\n1.  Navigate to the **Data columns** related list.\n\n2.  Select **New**.\n\n3.  Review the **Content configuration** field.\n\n    This read-only field contains the name of the associated content configuration. To preview the record, select the information icon.\n\n4.  In the **Type** field, select **Column** or **Script**.\n\n5.  If you selected **Column**, in the **Column** field, select the field that you want to include.\n\n    A tree view displays the fields available from the selected table. Expand the folders as needed and select the required field.\n\n6.  If you selected **Script**, configure the scripted column.\n\n    1.  In the **Content type** field, select the format of the content.\n\n        |Selection|Result|\n        |---------|------|\n        |Text|Returns the scripted content as text. This value is selected by default. Existing scripted data columns continue to return text. For example: `return targetRecordGr.getDisplayValue();`|\n        |HTML|Returns the scripted content as HTML. For example: `return `<h1>${targetRecordGr.getDisplayValue()}</h1>`;`|\n\n        **Important:**\n\n        HTML scripted data columns are supported only when the content configuration is used in a content block. They aren't available when the content configuration is used in a table.\n\n    2.  In the **Column name** field, enter a name for the scripted data column.\n\n    3.  In the **Script** field, enter a script that returns the content.\n\n7.  Select **Submit**.\n\n\n## What to do next\n\nTo continue configuring your report, see [Configure intermediate filters](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/governance-risk-compliance/grc-common-functions/configure-intermediate-filters.md).\n\n"}}