Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

String format in plugin for Email description

(0) ShareShare
ReportReport
Posted on by 255

Hi All,

i have created a mail using some plugin code

i have following text to be set for email desciption

"Hi Meeting is booked........."

above text i need to set for email description field with new line.

i.e 

Hi,

Meeting is booked

.........

right now i have written below line.

Email.Attributes["description"]="Hi Meeting is booked.........".

instead of this line what should i write for displaying some text in new line?  

  • Mona Chavan Profile Picture
    Mona Chavan 255 on at
    RE: String format in plugin for Email description

    Thanks abhishek i will try this out.

  • Suggested answer
    Abhishek Dhoriya Profile Picture
    Abhishek Dhoriya 1,011 on at
    RE: String format in plugin for Email description

    Hi Mona,

    Yes you can set the Priority of Email in outlook through code.

    For setting the the Email with High Priority you have the set the deliveryprioritycode attribute which of Option Set type to 2 .

    Email.Attributes["deliveryprioritycode"] = new OptionSetValue(2);

    Below is the mapping table and official Microsoft Docs link

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/email?view=dynamics-ce-odata-9 

    Name Type

    Details

    deliveryprioritycode Edm.Int32


    Value Label
    0 Low
    1 Normal
    2 High

    Hope this will solve your query. Kindly mark this as verified answer if it does.

    As always feel free to reach out to me if more assistance is needed.

    Have a great day ahead.....

    Best Regards

    Abhishek Dhoriya

    Consultant @ Microsoft India

  • Mona Chavan Profile Picture
    Mona Chavan 255 on at
    RE: String format in plugin for Email description

    Thanks Pravin and All,

    worked for me.

    one more question.

    i have one requirement that the e-mail to be marked as ‘High Priority’ in Outlook.

    in plugin code.

    Can i do that in plugin.

  • Mona Chavan Profile Picture
    Mona Chavan 255 on at
    RE: String format in plugin for Email description

    Thanks Pravin and All,

    worked for me.

    one more question.

    i have one requirement that the e-mail to be marked as ‘High Priority’ in Outlook.

    in plugin code.

    Can i do that in plugin.

  • Mona Chavan Profile Picture
    Mona Chavan 255 on at
    RE: String format in plugin for Email description

    Thanks Pravin and All,

    worked for me.

    one more question.

    i have one requirement that the e-mail to be marked as ‘High Priority’ in Outlook.

    in plugin code.

    Can i do that in plugin.

  • Mona Chavan Profile Picture
    Mona Chavan 255 on at
    RE: String format in plugin for Email description

    Thanks Pravin and All,

    worked for me.

    one more question.

    i have one requirement that the e-mail to be marked as ‘High Priority’ in Outlook.

    in plugin code.

    Can i do that in plugin.

  • Verified answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,231 on at
    RE: String format in plugin for Email description

    Please add <br> tag wherever you required..

    Email.Attributes["description"]="Hi Meeting is booked........." + "<br/>".

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: String format in plugin for Email description

    Hello,

    You can use html formatting like:

    Email.Attributes["description"]="<p>Hi,</p><p>Meeting is booked.........</p>";

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans