Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Changing the from email address to a Queue when Email loads

Posted on by 2

Hi,

I'm using the following java to set the from email address to a queue when the email form loads:

function SetBSHFromEmailAddress() {

var pQueue = new Array();

pQueue[0] = new Object();

pQueue[0].id = 'GUID';

pQueue[0].name = "Queue Name";

pQueue[0].entitytype= "queue";

Xrm.Page.getAttribute("from").setValue(pQueue);

}

I have included it on the Email from OnLoad event but get an error saying 'Entity Type not defined.

Any ideas?

Debra

*This post is locked for comments

  • KvRoploo Profile Picture
    KvRoploo 131 on at
    RE: Changing the from email address to a Queue when Email loads

    Thank you for this code, helped me a lot

  • Suggested answer
    Deb3107 Profile Picture
    Deb3107 2 on at
    RE: Changing the from email address to a Queue when Email loads

    Hi,

    that's amazing - been stucl on this for 2 days! Worked a treat.

    Thanks

  • Verified answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Changing the from email address to a Queue when Email loads

    Hi There,

    I think rather then this pQueue[0].entitytype= "queue";  

    it should be

    pQueue[0].entityType= "queue";

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans