Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Set e-mail address from JavaScript

$
0
0

I want to set To address on the e-mail form to a specific e-mail address for example test@test.com. test@test.com does not exists as a account/contact/lead etc in the system, it is just a simple mail address. 

I have tried some different ways like setting id and enity to null but have not found any way to solve the problem yet.
Xrm.Page.getAttribute("to").setValue([{ id: null, name: 'test@test.com', entityType: null }]);

Is it possible to set to address to a simple e-mail address by using JavaScript or does it only allow lookup? It is possible in the interface since I have enabled it in system settings. 


Viewing all articles
Browse latest Browse all 8223

Trending Articles