Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

How to Retrieve Custom Value from Lookup using Javascript

$
0
0

Hi all trying to Retrieve Custom Field Value from Lookup but it showing undefined 

Here am Retrieving ParentcontactId  & AlertNotification(Custom field) from Contact 

function = LeadAlertNotification(){
debugger;
var entityName,entityId,entityLabel,ParentContact;
LookupContact = Xrm.Page.getAttribute("parentcontactid").getValue()[0].name;
if (LookupContact !=null){
var AlertNote = Xrm.Page.getAttribute ("new_alertnotification").getValue(); 
Xrm.Page.ui.setFormNotification(AlertNote, "WARNING");
}
else {
Xrm.Page.ui.clearFormNotification();
}
}

Please Give Some Suggestion 

Thank you 

Regards

Sk 


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>