Skip to main content

Notifications

Announcements

No record found.

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 907
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 !
  • Suggested answer
    Kevin Xia Profile Picture
    Kevin Xia 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans