<apex:page standardController="CampaignMember__c" extensions="ViewParticipantsController" id="page">
|
<apex:includeScript value="{! URLFOR($Resource.AWSService, 'AWSService.js') }"/>
|
<apex:form id="form">
|
<apex:pageblock id="pageBlock">
|
<apex:pageBlockSection showHeader="false" title="" collapsible="true" columns="2" id="pageBlockSection">
|
<apex:outputText label="统一用户Id" id="viewContactId" value="" />
|
</apex:pageBlockSection>
|
<script>
|
|
var staticResources = JSON.parse('{!staticResourceContact}');
|
console.log(staticResources)
|
function QuerySobjectFromAWS() {
|
//查找viewContactId
|
AWSService.query(staticResources.viewUnifiedContactUrl, '948578480969220097', queryBackContactId, staticResources.token);
|
}
|
var queryBackContactId = function queryBackContactId(data) {
|
console.log(JSON.stringify(data))
|
if(data.status == '0'){
|
document.getElementById('page:form:pageBlock:pageBlockSection:viewContactId').innerText = data.object.viewContactId;
|
}
|
};
|
sfdcPage.appendToOnloadQueue(function () {
|
QuerySobjectFromAWS();
|
});
|
</script>
|
</apex:pageblock>
|
</apex:form>
|
</apex:page>
|