Question

Lorsque je sélectionne un contact dans un champ de recherche, je veux obtenir son surnom (par exemple). Comment faire en utilisant Javascript?

J'ai déjà GUID de ce contact.

Edit: En entité cas je recherche sur ce champ avec le type de contact. Chaque entité est par défaut. Maintenant, lorsque je choisis un contact sur l'entité Case, comment puis-je Pseudo de contact?

Était-ce utile?

La solution

I think you are looking for REST endpoints to go ask CRM for the Contact's Nickname via javascript. This question has an answer by Anwar which explains how to use the REST endpoints to get data. In your case, notice how he is requesting the conact:

odataUri = odataUri + '/ContactSet?$select=ContactId,FullName&$filter=

you could get the nickname in a similar fashion:

odataUri = odataUri + '/ContactSet?$select=ContactId,NickName&$filter=
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top