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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Out Of Box Entity

(0) ShareShare
ReportReport
Posted on by 795

Hello,

Can anyone please explain the concept of Out Of Box entity? I want to auto create a case on create of email(Out of box) using Plugin.

Thanks for any help.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    Out Of Box entity is an entity that comes pre-configured with the system. These are such as account, contact, lead, email or case.

    Regarding using a plugin to create a case out of an email, that is of course possible, but it might be something that you can do without code "Out of the box".

    Take a look at this article:

    www.microsoft.com/.../automatically-create-a-case-from-an-email-customer-service.aspx

    This was introduced in CRM 2013 SP1.

  • CRM Beginner  Profile Picture
    795 on at

    Thanks for the reply Sr. But what if i want to achieve it using plugin ?

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    Create a Plugin on your Email the Create Message of the Email Entity.

    Something like this:

    Entity case = new Entity("incident");

    // Enter attributes that you want her from the case entity

    case["description"] = description;

    //Capture the id of the complaint, we will need this in a moment

    Guid caseId = service.Create(case);

    // If you need to retrieve the ticket number after the case is created, you will need to call the retrieve method on the case (incident) entity.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    I would suggest you to go through the documentation on pplugins and follow some basic sample plugins available in SDK.

    Once you are familiar with the concept of plugins, you can then create your own plugin on create on email to create case based on the code provided above by Aric.

    crmbook.powerobjects.com/.../plug-ins

    msdn.microsoft.com/.../gg594416.aspx

    msdn.microsoft.com/.../gg328490.aspx

    Hope this helps.

  • CRM Beginner  Profile Picture
    795 on at

    Sir,

    "case["description"] = description;" Can you please explain this?

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    "case["description"] = description;" - this statement sets the description of the case being created. Here you need to replace the value you want to store in the description field of case.

    Considering your example (create case on email create), you might want to set the description of the email as the description of the case.

    Hope this helps.

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    This is just an example.

    You can set the description attribute of the Case entity to whatever value you have in the description field. This can be the actual description (message) that you had from the email entity.

    You would read the description field of the email entity and store that in the Case (incident) entity,

  • CRM Beginner  Profile Picture
    795 on at

    Thanx to both of you! It worked.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans