When I set the lookup in java script I get a type mismatch error after all Java has run.
Here is the reults of a function I have to create the array and return it to the setvalue statement.
return
[{ id: entity.attributes[field].id, name: entity.attributes[field].name, entityType: entity.attributes[field].logicalName}]
The strange thing is the lookup works I can click the link and go to the record selected.
Any guidance would be appreciated.