Hello everyone, I’m currently working on a Dynamics 365 Finance & Operations (X++) project, and I’m trying to create a Custom Service (API) to display employee data from the HcmWorker table. I’ve already created the necessary classes (EmpWorkerContract and EmpWorkerService), the service, and the service group — everything builds and deploys successfully. However, when I test the API from Postman, instead of getting actual worker data, the response only shows the service metadata (the parameter and return type information). Could someone please explain why this happens and how I can fix it so the API returns the actual data in JSON format?
HcmWorker
EmpWorkerContract
EmpWorkerService
Thank you!
Thanks, Layan Jweihan Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future.
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 Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,029
André Arnaud de Cal... 871 Super User 2025 Season 2
Sohaib Cheema 582 User Group Leader