I am trying to extract data from synchronized data extension "Case_Salesforce" to show on an email. Is it possible to do this? I am using lookup function to achieve. I can get synchronized data extension "Contact_Salesforce" ,but cannot get data out of "Case_Salesforce". Does Anyone know what the differnce is between them?
%%[<br>
var @lookupvalue,@CaseId,@Subject,@ContactEmail,@Status<br>
set @lookupvalue = AttributeValue("_subscriberkey")<br>
set @CaseId = Lookup("Case_Salesforce","Id","Id",@lookupvalue)<br>
set @Subject = Lookup("Case_Salesforce","Subject","Id",@lookupvalue)<br>
set @ContactEmail = Lookup("Case_Salesforce","ContactEmail","Id",@lookupvalue)<br>
set @Status = Lookup("Case_Salesforce","Status","Id",@lookupvalue)<br>
]%%<p>
Case Detail<br>
CaseID:%%=v(@CaseId)=%%<br>
Subject:%%=v(@Subject)=%%<br>
Status:%%=v(@Status)=%%<br>
</p>
set @CaseId = Lookup("Case_Salesforce","Id","Id",@lookupvalue)
you lookup the "ID" value and search with ID you insert there. That makes no sense