Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Plug-in code for creating new record in "appointment" entity in d365 crm

Posted on by 15

I have write to simple plugin code for creating new record in  appointment entity(System entity) in d365 CRM , when i load plugin and registering a step in "preoperation" method then it will directly automated -- created new record in appointment entity .Please anyone help?

  • Suggested answer
    CRMJetty Profile Picture
    CRMJetty 3,508 on at
    RE: Plug-in code for creating new record in "appointment" entity in d365 crm

    Hello Vivek roshan,

    For creating new record in  appointment entity(System entity) in d365 CRM

    Please refer this link to create appointment programmatically by c#.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,962 Moderator on at
    RE: Plug-in code for creating new record in "appointment" entity in d365 crm

    Hi,

    Why don't you use Workflow for that?

    Simple workflow without any code should achieve your requirement.

    Anyway have you written any code in pre-operation plugin, please share the code so that I can look and give feedback?

  • vivek roshan Profile Picture
    vivek roshan 15 on at
    RE: Plug-in code for creating new record in "appointment" entity in d365 crm

    I saw this code , This code is : This task record will be created only if the account record will be created, This means this depend on Account entity(your given code said that task create only after triggred  after account record created)...... I have to only create record in entity "Appointment entity" and it has to be independent .

    Just like suppose : we create a simple record in Account or contact or any entity  .Like preOperation pipeline execution method -- put plugin code and after refresh ,it will direct automatically created a single record in any entity.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,962 Moderator on at
    RE: Plug-in code for creating new record in "appointment" entity in d365 crm

    Hi,

    Please share your code.

    You can look at below sample plugin code which is creating Task

    github.com/.../FollowupPlugin

    You can update this to create appointment

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans