热词推荐:
当前位置:首页 > 技术文章 > JavaScript >

veeva自动获取SurveyID

作者:欧欧 来源:风者信息科技 发布时间: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()


电话:13599120724

邮箱:oo@fzer.net

地址:厦门市集美区杏林湾路496号裙楼D022

热词推荐

案例展示

产品项目

文章信息