Answered by:
Outbound Emails from queues

Question
-
I have configured CRM to turn incoming emails into leads using a CRM queue assigned to an enquiries@ mailbox. When a CRM user replies to these leads the email defaults to be sent by the user as opposed to the Enquiries email address. Does anyone know how I can set this up to default the outgoing mailbox to be the Enquries box as opposed to the individual users mailbox without having to select it?Tuesday, August 10, 2010 5:24 PM
Answers
-
Hi Shaun,
Here is example code for the same..put this on Email Form OnLoad.........
Put relevant GUID of the queue in the following script and see if this works..
//Create an array to set as the DataValue for the lookup control. var lookupData = new Array(); //Create an Object add to the array. var lookupItem= new Object(); //Set the id, typename, and name properties to the object. lookupItem.id = <<GUID OF QUEUE>>; //Record GUID lookupItem.typename = 'queue'; //Entity Name var lookupname = retriveName(lookupItem.id); lookupItem.name = lookupname; // Add the object to the array. lookupData[0] = lookupItem; // Set the value of the lookup field to the value of the array. crmForm.all.from.DataValue = lookupData;
MayankP My Blog My twitter- Proposed as answer by Neil BensonMVP, Moderator Tuesday, August 17, 2010 8:54 AM
- Marked as answer by Donna EdwardsMVP Tuesday, August 17, 2010 2:56 PM
Tuesday, August 17, 2010 8:43 AMAnswerer
All replies
-
You can ask your user to when they reply select the Queue name in From address and then click on Send..
This way reply will go from queue mailbox not from users...
Also you can write some java script code to default From field to that queue address in case if your user does not like extra step of selecting queue..
Hope this helps..
MayankP My Blog My twitterTuesday, August 10, 2010 7:31 PMAnswerer -
Many thanks MayankP,
I understand the change to the From Address but I would like a more automated solution. Do you have any examples of javascript that would do this as I'm not a developer?
Regards
Shaun
Tuesday, August 10, 2010 9:48 PM -
Hi Shaun,
Here is example code for the same..put this on Email Form OnLoad.........
Put relevant GUID of the queue in the following script and see if this works..
//Create an array to set as the DataValue for the lookup control. var lookupData = new Array(); //Create an Object add to the array. var lookupItem= new Object(); //Set the id, typename, and name properties to the object. lookupItem.id = <<GUID OF QUEUE>>; //Record GUID lookupItem.typename = 'queue'; //Entity Name var lookupname = retriveName(lookupItem.id); lookupItem.name = lookupname; // Add the object to the array. lookupData[0] = lookupItem; // Set the value of the lookup field to the value of the array. crmForm.all.from.DataValue = lookupData;
MayankP My Blog My twitter- Proposed as answer by Neil BensonMVP, Moderator Tuesday, August 17, 2010 8:54 AM
- Marked as answer by Donna EdwardsMVP Tuesday, August 17, 2010 2:56 PM
Tuesday, August 17, 2010 8:43 AMAnswerer