I want plugin in c# code for creating new record of contact entity. and also insert same record in sql DB using web api
Hello,
You can start here - docs.microsoft.com/.../tutorial-write-plug-in
To create a contact in plugin is straight forward. You can use something like this:
community.dynamics.com/.../plugin-create-a-new-record-in-an-existing-entity
Coming to webAPI part, you can create a webAPI to insert record in SQL
www.c-sharpcorner.com/.../
However this is on SQL Azure. If you need something for SQL On-Prem then hybrid connection might help:
github.com/.../web-sites-hybrid-connection-connect-on-premises-sql-server.md
Thanks,
Prateek
you can follow up this link to use Plugin to create new Contact docs.microsoft.com/.../tutorial-write-plug-in
carldesouza.com/.../
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
MVP-Daniyal Khaleel 125
Tom_Gioielli 110 Super User 2025 Season 2
Erin Lubben 73