Veeva CRM

Integrating CLM with CRM

Using Surveys

To display and retrieve survey questions and answers, use the following JavaScript functions (refer to the Multichannel CRM JS library for further documentation):

To create a new Survey Target record and corresponding Question Response records, enter the following information to correctly save records for Surveys.

Survey Targets (Survey_Target_vod__c)

From CLM, if there isn’t already a Survey Target created for the Survey/Account combination, a Survey Target must be created. If there is an existing pending or saved survey target record (based on the Status_vod field), the question response records related to that survey target record can be updated.

Populate the following fields based on the Survey:

  • Account_vod__c = SFDC ID of the account for the call
  • Survey_vod__c = SFDC ID of the Survey record
  • Status_vod__c = Saved_vod
  • RecordTypeId = SFDC ID of the Survey Target RecordType matching the RecordType on the Survey Record
  • No_Autoassign_vod__c = YES (unless the customer chooses otherwise)

Copy the values for the following fields from the Survey record:

  • Name (text)
  • Territory_vod__c
  • Start_Date_vod__c
  • End_Date_vod__c
  • Region_vod__c
  • Language_vod__c
  • Channels_vod__c
  • Any other custom (non _vod) fields with the same API name on both Survey and Survey Target

The rest of the fields should get filled in during sync, but they can also be filled in via CLM:

  • Owner = SFDC ID of the user
  • Account_Display_Name_vod__c

If the customer wants to follow the logic Veeva CRM uses for Surveys, implement the following:

  • If Open_vod__c is false on the corresponding Survey, then do not create a Survey Target
  • If Open_vod__c is true, Survey is One Time, and a Survey Target already exist, do not create a Survey Target

Question Response (Question_Response_vod__c)

From CLM, if there isn’t already a Survey Target created for the Survey/Account combination, a Survey Target must be created. If there is an existing pending or saved survey target record (based on the Status_vod field), then the question response records related to that survey target record can be updated.

New question response records must use the CLM record type. Ensure the RecordType field on the Question Response object is populated with the RecordTypeId for CLM_vod.

Copy the value for the Survey_Target_vod__c (lookup) field from the Survey Target record.

Copy the values for the following fields from the Survey Question record:

  • Order_vod__c
  • Required_vod__c
  • Answer_Choice_vod (for picklist, radio, and multiselect questions. The format is response;weight;response;weight;...)
  • Survey_Question_vod__c (lookup)
  • Question_Text_vod__c
  • Type_vod__c = SFDC ID of the record type for the Survey Question record

Populate one of the following fields based on the question type and the answers from the CLM Presentation:

  • Date_vod__c
  • Datetime_vod__c
  • Number_vod__c
  • Response_vod__c
  • Text_vod__c
  • Score_vod__c (if relevant)

Note: When populating the Response_vod__c field (for multiselect, picklist, and radio questions), do not copy the weight.

Using Order Management

To display and retrieve Order Management related information, use the following JavaScript functions (refer to the Multichannel CRM JS library for further documentation):

To create a new Order record and corresponding Order Line records, enter the the following information to correctly save records for the Order Management module.

Order (Order_vod__c)

Each time the presentation displays and a doctor wants to order at least 1 product, then an Order record should be created.

Populate the following fields based on answers from the CLM Presentation:

  • Account_vod__c = SFDC ID of the account for the call
  • Call2_vod__c = record ID of the call
  • Order_Date_vod__c = date of the order
  • Status_vod__c = Saved_vod
  • RecordType = SFDC ID for Direct_vod
  • CurrencyIsoCode = the currency defined for the user

Copy the values of the following fields from the Account for the call:

  • Account_Group_vod__c
  • Account_ID_vod__c
  • Account_Name_vod__c

The remaining fields are auto-populated after the user reviews the order in Veeva CRM and saves.

Order Line (Order_Line_vod__c)

An Order Line should be created for each product. The logic for the presentation slides should ensure Order Lines are created appropriately.

Populate the following fields based on answers from the CLM Presentation:

  • Order_vod__c = SFDC ID of the Order Header record
  • Quantity_vod__c = specified by the HCP
  • Product_vod__c = SFDC ID of the product
  • Product_Group_vod__c = SFDC ID of the product group (if relevant)
  • List_Price_vod__c = calculated by the getListPrice_Product function

The remaining fields are auto-populated after the user reviews the order in Veeva CRM and saves.