Hi guys.
I want to be able to reply to a mail with the same address that was used by the people who sent it to me (ex: info@mycompany.com)
I already know how to change it directly by JavaScript:
First, i get the associated queue email data, on the original mail:
var array1 = new Array();
array1 = Xrm.Page.getAttribute("to").getValue();
And then set the "From" value to the same i got in the previous form:
var value = new Array();
value[0] = new Object();
value[0].name = '<mailQueueSomething>';
value[0].id = "{xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}";
value[0].entityType = "queue";
Xrm.Page.getAttribute("from").setValue(value);
BUT, the PROBLEM is, since JavaScript isn't "dynamic", i can't get the "To" value from the received mail directly to my "From" value to the reply email i'm gonna make, i have to do it on 2 seperate Form's.
Any ideas on doing this automatically?
Thanks in advance