web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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?  

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    You can use html formatting like:

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

  • Verified answer
    Pawar Pravin Profile Picture
    5,237 on at

    Please add <br> tag wherever you required..

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

  • Mona Chavan Profile Picture
    255 on at

    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
    255 on at

    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
    255 on at

    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
    255 on at

    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.

  • Suggested answer
    Abhishek Dhoriya Profile Picture
    1,013 on at

    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
    255 on at

    Thanks abhishek i will try this out.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 196 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans