Hello
on the campaign response form there is a look up to customer which defaults to account entity
is it possible to have it default to contacts entity instead when selecting look up?
*This post is locked for comments
Hello
on the campaign response form there is a look up to customer which defaults to account entity
is it possible to have it default to contacts entity instead when selecting look up?
*This post is locked for comments
Try this in your case:-
var control = Xrm.Page.getControl("customer");
control.getAttribute().setLookupTypes(["contact"]);
E.g If you want to set "regarding" field in phone call to "contact" entity only.
var control = Xrm.Page.getControl("regardingobjectid");
control.getAttribute().setLookupTypes(["contact"]);
community.dynamics.com/.../186304
You can modify attributes according to your requirements.
Hi,
Try using the Javascript code below.
Xrm.Page.getControl("customerid").setDefaultView("ContactsViewGuid");
This sets the default entity type to Contact for the Customer Lookup.
sorry seems like there is confusion in the question; at the moment when selecting the look up if defaults straight to Account Entity i need it to default to contact entity instead.
Refer to this link
An unsupported way could be
nycrmdev.blogspot.com/.../changing-default-view-of-inline-lookup.html
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156