web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Send XML file to REST API

(0) ShareShare
ReportReport
Posted on by 4,624

Hello ,

 I need to send XML file that contains some data from D365FO to one REST API (provided by 3rd party) . I am looking for all possible options available in D365FO . It will be kind of Push operation from D365FO to REST API.

please suggest.

I have the same question (0)
  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Rohin,

    Do you have specific questions about REST API consumption in F&O or it's general question?

    For example you can use .net class HttpWebRequest or complete libraries likes RestSharp ( https://restsharp.dev/ )

    allaboutdynamic.com/.../

  • Rohin Profile Picture
    4,624 on at

    Thanks Sergei, however , I have a xml file generated by FO and need to send this file to REST API. I was wondering what approach I could you i.e. Data management or recurring or something else ?

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Rohin,

    The data management can't communicate with web services directly. If you can export XML via entity, you can utilize recurring job or data package API to prepare data on F&O side, and integration middleware like Logic Apps can download message from F&O, transform message to web service format and push it futher.

    But you can communicate with web services from F&O with x++ development as well as i mentioned in prev. comment.

  • Rohin Profile Picture
    4,624 on at

    Okay , I can see only JSON data send to web API however my case is bit different, I have XML file with data that need to send over REST API , can you please suggest any sample examples or something useful resource ??

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    As Sergei suggested, the easiest approach might be to use Recurring Data jobs or Data Package API to export the XML from D365FO. Then use LogicApps to fetch the XML file and send it to the web service. This way you could utilize existing building blocks that others have created (and keep maintaining) and minimize the need to write code yourself.

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Rohin,

    There are a lot of examples on the Internet on how to use HttpWebRequest and send xml in body (you can always check how it done in C# and do the same in x++)

    stackoverflow.com/.../c-sharp-rest-api-xml-as-post-data

  • Rohin Profile Picture
    4,624 on at

    Thanks Nikolaos and Sergei .

    I have already XML generated by Electronic reporting(ER) format . And I don't use logic app however we have dell bhoomi where i need to send this xml file. is there any way to send it to bhoomi via recurring job ?? please suggest solutions.

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Rohin,

    Recurring jobs are used only with entites.

    For ER files you can use MS Power Automate integration, send generated files to SharePoint or to system email and PowerAutomate can do futher processing based on SharePoint trigger or e-mail trigger.

    Looks like you already had similar case:

    community.dynamics.com/.../send-xml-files-from-d365-to-bank-using-er-framework

  • Rohin Profile Picture
    4,624 on at

    Yes , that's originated from there. Initially we supposed to send through ER framework but it doesn't have capabilities to send directly to web service therefore we will be using Bhoomi as middleware. Now We can't use MS flow/PowerAutomate/logic app other than BHOOMI. Can you please do let me know what are the possibilities.

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Rohin,

    I recommend you check the capabilities of BHOOMI first. Can it have e-mail based triggers? Or integration with SharePoint? (at the moment it's the easiest ways to get XML generated by ER out of F&O)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans