Skip to main content

Notifications

Dynamics 365 general forum

Create records in Dynamics using Function App and Web API service endpoint

Posted on by Microsoft Employee

Hi Experts,

I need to create a function app to connect to Dynamics 365 using (/api/data/v9.1/) endpoint and create or update records in D365. 

Preferred Language is C# or javascript.

I have already read blogs which connect to D365 using Organization Service (/XRMServices/2011/Organization.svc). But as it is deprecated so I need to connect using Web API. 

Please Help!!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create records in Dynamics using Function App and Web API service endpoint

    Hi Ravi,

    My requirement is I have a Azure function app from which I need to create records in Dynamics 365 9.0

    I am able to connect using Organization Service Endpoint, but I need the steps to connect the azure function APP using WEBAPI.

    I am aware of using WEB API in console and WEB jobs, but I am unable to do the same in Azure Function App.

    Please try it from your end and let me know if you are able to connect. Thanks.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create records in Dynamics using Function App and Web API service endpoint

    Hi Johnny,

    In my post, I have mentioned that I am able to connect the azure function app to D365 using Organization Service.

    But I am need to use WEB API for connection.

    I am failing to connect function app using Web API code.

  • Johnny Gong Profile Picture
    Johnny Gong 6,482 on at
    RE: Create records in Dynamics using Function App and Web API service endpoint

    Hi DevDynm,

    If your want to use Azure Functions to Call Dynamics 365 which still needs to use the Endpoint XRMServices/2011/Organization.svc.

    community.dynamics.com/.../using-azure-functions-to-call-dynamics-365

    So have you tried above post operation and failed to access the Endpoint address?

    Best Regards

    Johnny

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Create records in Dynamics using Function App and Web API service endpoint

    Hi Dev,

    Are you trying Azure function App or want to execute function using Web API?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create records in Dynamics using Function App and Web API service endpoint

    Hi Arun,

    I am aware of using Web API in c# console applications for 8.2 version.

    But I do not know how to do function app WEB API development and deployment.

    I have tried many ways but it is not getting connected.

    Thanks.

  • Verified answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Create records in Dynamics using Function App and Web API service endpoint

    These links should help you started.

    Code samples from MSDN:

    docs.microsoft.com/.../web-api-samples-csharp

    www.sikich.com/.../using-azure-function-apps-to-manipulate-data-dynamics-365

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans