Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
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,964 Super User 2024 Season 1 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,964 Super User 2024 Season 1 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

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans