I debugged these values from lookup:
id: 03D34054-8209-E311-89B1-FE5DF65E5123 name: Remember add customer, entityType: account
How I should enter those values to this correctly if I want to set a default lookup:
Xrm.Page.getAttribute("attributename").setValue([{ id: recorid, name: recordname, entityType: entityname}]);
If I use this:
Xrm.Page.getAttribute('customerid').setValue([{id: 03D34054-8209-E311-89B1-FE5DF65E5123, name: Remember add customer, entityType: account}]);
I only get an error.
I am setting up default lookup for order's customer field. The customer's name is Remember add customer.