|
|
#1 |
|
Участник
|
Как вытащить данные из лукапа на 2 сущности?
Имеем сущность Case, у который customer может быть контактом и аккаунтом. У аккаунта надо вытащить одно поле, у контакта другое. Как написать следующее условие:
Если значение лукапа принадлежит сущности аккаунт - одно действие, если принадлежит контакту - другое. |
|
|
|
|
#2 |
|
Moderator
|
Код: var customer = new Array();
customer = null;
// This gets the lookup for the attribute customerid on the Opportunity form.
customer = crmForm.all.customerid.DataValue;
// If there is data in the field, show it in a series of alerts.
if (customer[0] != null)
{
// The name of the customer.
alert(customer[0].name);
// The GUID of the customer.
alert(customer [0].id);
// The entity type name of the customer.
alert(customer[0].typename);
}
__________________
http://fixrm.wordpress.com, снятие/наведение порчи. Быстро, дорого, гарантия. ![]() MS Certified Dirty Magic Professional
|
|
|
|
| За это сообщение автора поблагодарили: vital.mih (1). | |
|
|
|