作者:欧欧 来源:风者信息科技 发布时间:2022-07-01
以下是直接查找:
//读取 document.location="veeva:queryObject(Survey_vod__c),fields(ID,Name),where(WHERE External_ID_vod__c='ExforgeSurvey1'), sort(Name,asc), getSurveyVODID(result)"; //回调 function getSurveyVODID(result0){ if(result0.success == true) { surveyVODID=result0.Survey_vod__c[0].ID; com.veeva.clm.getRecordType_Object("Question_Response_vod__c", handleGetQuestionResponseRecordTypes); }else{ alert("读取surveyVODID失败"); } }
以下是通过Presentation获取ID:
function getSurveyID(){ com.veeva.clm.getDataForCurrentObject("Presentation", "Survey_vod__c",function(){ surveyVODID = result.Presentation.Survey_vod__c; }); } getSurveyID()