Hi all,
I am using this code
function CreateListMemberValidation()
{
debugger;
var entityId = Xrm.Page.data.entity.getId();
var Name = Xrm.Page.getAttribute('aw_name');
//fetch xml code
var MarketingListQuery = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>" +
" <entity name='list'>" +
" <attribute name='createdfromcode' />" +
" <attribute name='listid' />" +
" <order attribute='createdfromcode' descending='true' />" +
" <link-entity name='aw_mailchimp_list' from='listid' to='listid' visible='false' intersect='true'>" +
" <link-entity name='aw_mailchimp' from='aw_mailchimpid' to='aw_mailchimpid' alias='al'>" +
" <filter type='and'>" +
" <condition attribute='aw_mailchimpid' operator='eq' uiname='" + Name + "' uitype='aw_mailchimp' value='" + entityId + "' />" +
" </filter>" +
" </link-entity>" +
" </link-entity>" +
" </entity>" +
"</fetch>";
var Records = XrmServiceToolkit.Soap.Fetch(MarketingListQuery);
if (Records.length > 0) {
if (Records[0].attributes.createdfromcode != undefined){
var MemberType = Records[0].attributes.createdfromcode;
}
}
}
How can I get below formattedvalue?

Thank You
*This post is locked for comments
I have the same question (0)