Notifications
Announcements
No record found.
I need a help from you all.
I am supposed to capture the weight of a Finished Good & integrate it with Microsoft Dynamics using "Comm Port".
Please help. Thanks in advance.
*This post is locked for comments
Hi Deepak,
Create a custom service in AX, expose it by deploying the service group. Afterwards, you can call this service from a .NET application to pass the weight information to AX.
Please let me know if you need further help in this regard.
Thanks,
Baber.
Thanks for your help Baber. I am really not sure how to achieve this. Can you help me out with any documentation or Link so that It can guide me to achieve this.
What is "Comm Port"? Do you mean serial (COM) port, or something completely different?
Its serial Serial COM port Mr. Drab. Can you please suggest any approach Sir.
Here is the TechNet link related to services:
technet.microsoft.com/.../hh509053.aspx
Here is a blog post about creating custom service in AX:
axblog4u.wordpress.com/.../dynamics-ax2012-create-custom-service-using-x
You can create a .NET application that reads your COM port, reads the data from there and then call the custom service, you developed in AX to update the desired data in AX.
Please verify and let me know if you have further queries.
And here is the post which explains how to read and write from the serial port in C#:
stackoverflow.com/.../how-to-read-and-write-from-the-serial-port-in-c-sharp
First of all, ensure yourself that you don't have any higher-level API, before going to low-level development involving the serial port directly. It may not be fun.
.NET offers System.IO.Ports.SerialPort class for this purpose, therefore I would write all the communication in .NET and expose a .NET library or a service to AX.
Martin provided you an another option, so it really depends on your requirement. If you want to trigger the data update in AX based on the incoming data on COM port, then you need to use the .NET code to read the data and then call the custom service to update the data in AX.
Hi Baber,
Can this work in Dynamics 365 Finance and Operations too? I want to read a USB scale and then push the data from the USB Scale to my Dynamics 365 table.
You still can use C# libraries discussed above, but you can't directly connect to a port on a local machine from cloud. You need a local app pushing data to Azure or working as a gateway.
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2