Source: https://vaultcrmhelp.veeva.com/doc/Content/CRM_topics/Multichannel/CLM/CreatingContent/CreateHTML/DynamicContent.htm

## Creating Dynamic Content

* Object Model

Content creators can create dynamic CLM content for end users to display to target accounts. Dynamic CLM content can include personalized information pulled from Vault CRM, tailoring the content for each HCP and enhancing HCP engagement. This allows end users to achieve greater impact with their target accounts.

**Who can use this feature?**

* Business Admin Users - Browser
* Content Creator Users - Browser
* [Create dynamic content](#Creating)
* End Users - CRM Desktop (Windows), iPad, iPhone, Windows
* Users do not require an additional license

### Configuring Attachment Fields for Dynamic Content for

[![Closed](../../../../../../Skins/Default/Stylesheets/Images/transparent.gif)Business Admin Users](#)

To configure this feature:

1. Navigate to **Admin > Configuration > Objects > VMobile Object Configuration > Layouts**.
2. Place the **Include Attachment Field List (include\_attachment\_field\_list\_\_v)** field on the appropriate layouts.
3. Navigate to **Admin > Users & Groups > Permission Sets**.
4. Select the appropriate permission set.
5. Select the **Objects** tab.
6. Grant the following permissions:

   | Objects | Object Permissions | Object Types | Fields | Field Permission |
   | --- | --- | --- | --- | --- |
   | vmobile\_object\_configuration\_\_v | R | tablet\_\_v | include\_attachment\_field\_list\_\_v | Read |

[![Closed](../../../../../../Skins/Default/Stylesheets/Images/transparent.gif)End Users](#)

To configure this feature:

1. Navigate to **Admin > Users & Groups > Permission Sets**.
2. Select the appropriate permission set.
3. Select the **Objects** tab.
4. Grant the following permissions:

   | Objects | Object Permissions | Object Types | Fields | Field Permission |
   | --- | --- | --- | --- | --- |
   | vmobile\_object\_configuration\_\_v | R | tablet\_\_v | include\_attachment\_field\_list\_\_v | Read |
5. Navigate to **Business Admin > Objects > VMobile Object Configurations**.
6. Navigate to the VMOC for the applicable object.
7. Define the attachment fields in the **include\_attachment\_field\_list\_\_v** field. This is a double semi-colon delimited list. This ensures specific attachment fields sync to end user devices.
8. Ensure the VMOC is **Active**.

### Creating Dynamic Content as

[![Closed](../../../../../../Skins/Default/Stylesheets/Images/transparent.gif)Content Creator Users](#)

Veeva provides the [getDataForCurrentObject](https://developer.veevacrm.com/doc/Content/CRM_topics/Vault/clm-vault.htm#getDataForCurrentObjectobjectfieldcallback), [getDataForObject](https://developer.veevacrm.com/doc/Content/CRM_topics/Vault/clm-vault.htm#getDataForObjectobjectrecordfieldcallback), and [queryRecord](https://developer.veevacrm.com/doc/Content/CRM_topics/Vault/clm-vault.htm#queryRecordobjectfieldswheresortlimitcallback) JavaScript functions to enable content creators to read from the Vault CRM database. Possible uses of these include:

* Displaying the HCP’s name and specialty
* Displaying the HCP’s parent organization name
* Changing the information displayed on the content based on the physician's segment
* Reading which survey is associated to the presentation being displayed

The getDataForObject function is not supported for content on the CRM Desktop (Windows) platform.

On the iPad and CRM Desktop (Windows) platforms, the queryRecord JavaScript function supports attachment fields, allowing content creators to retrieve .txt files from Vault CRM to use in CLM content. The .txt files can have a maximum size of 1.2 MB.

Custom attachment fields are not supported on the user\_\_sys object.

### Related Topics

[Creating Interactive HTML Content](../CreateInteractiveHTML.htm)

[Customizing Slide Navigation](CustomSlideNav.htm)
