When I create a procedure in codeunit that returns records then it disappears from the $metadata. If I change the return type to simple such as boolean then it re-appears in $metadata. Anyone familiar with this pls advise?
Hello - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.
www.yammer.com/dynamicsnavdev
I will open this up to the community in case they have something to add.
I am not an expert at web services, but perhaps it would be easier to use a page for this kind of web service?
You can not return record in a procedure to consume it as WS or API. Why do not you convert these records into an JsonArray and return it as a text?
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.
OussamaSabbouh 3,377
Jainam M. Kothari 2,696 Super User 2025 Season 2
YUN ZHU 1,512 Super User 2025 Season 2