bs25
bs25

Reputation: 1

To restrict the multi entity lookup using javascript in MSCRM 2015

Am trying to restrict the entities list in regarding object lookup in task entity. document.getElementById('regardingobjectid").getAttribute("lookuptypenames") is returning null in 2015 whereas in crm 2011 it is working fine. is there any way to get all the entity listed in multi entity lookup in crm 2015?.

Upvotes: 0

Views: 620

Answers (2)

Vinod Srivastav
Vinod Srivastav

Reputation: 4255

document.getElementById("customerid").setAttribute("lookuptypes", "1");

will restrict customer to Account

Upvotes: 0

Andrew Butenko
Andrew Butenko

Reputation: 5446

Try to use

document.getElementById("regardingobjectid_i").getAttribute("lookuptypenames")

Upvotes: 1

Related Questions