Hi,
In the email form, I want to make the default lookup for the "to", "cc" and "bcc" fields set to contact.
Although my code does work perfectly fine for the regarding object, it does not for the mail parties.
What I did was:
- create a custom view for contact in javascript
- add the custom view to the control
- set the contact lookup view as default
Something else I should do for "to","cc" and "bcc"?
*This post is locked for comments
Hi Birgit,
You can try the below code-
Xrm.Page.getControl(“to”).getAttribute().setLookupTypes([“contact”]);
www.ktlsolutions.com/.../setting-entity-lookup-defaults-party-lists-dynamics-crm-2016
Hope this helps.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6