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.