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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

in OnClick() Event Handlers, on which Instance (Server) of D365FO It is Running?

(0) ShareShare
ReportReport
Posted on by 1,019
Hi dears!

In D365, I have a customization that on events like OnClick() on some forms, it will call the APIs of a web application deployed on IIS to send data to the web application.
This event will take the Web application API end point from a text box available on a form in D365, to send the data from D365 to the web app.
 
On development machines, I have no issues, since everything is deployed in one VM (Both the web app and all D365FO services).
But I have a situation now, where I want to deploy this solution into an on-premise D365 F&O.
 
The D365 is deployed on a subnet different than the web app subnet, so I need to open ports between the two subnets.
And D365 FO architecture has multiple different servers running (Application Server, Batch Server, Reporting server...etc).
 
My question is, on which server of D365 FO I need to open the ports to the web application, so the D365 Event Handler can reach the APIs end point of the web application hosted on IIS?
 
I'm sorry for the length of my question.
Any suggestion is appreciated !
 
Thanks in advance !
I have the same question (0)
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    in OnClick() Event Handlers, on which Instance (Server) of D365FO It is Running?
    HI,
    The OnClick() event handlers are typically executed on the client side (user interface), and not directly on the server side. When a user interacts with a form and triggers an OnClick() event, the associated code runs on the client machine, and it doesn't inherently involve communication with the backend servers of F&O.
    If your customization involves making API calls to a web application deployed on IIS, the communication will originate from the client side. In the context of networking and port opening, you would generally need to ensure that the client machines running the D365 F&O clients have the necessary network access to reach the web application's API endpoint.
    In your on-premise deployment scenario, focus on allowing network traffic from the client machines (where D365 F&O is accessed) to the web application's server. You might need to open the relevant ports on firewalls between these subnets, but the target server is the one where your web application is hosted.
    Best regards,
    Kevin

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 813

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 566 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans