I’m easily able to call OData enabled generic inquiries from Postman and also make the mass metadata call for all enabled GIs. Is there a way to pull the metadata for only a single GI? Copilot indicates that the format is https://[YourAcumaticaInstance]/OData/[GenericInquiryName]/$metadata but that doesn’t work. The result is a 500 internal server error with the request profiler showing “Invalid action detected. ‘$metadata’ is not an action that can bind to collection...etc.”. If I try alternate formats including using the metadata link returned in a Postman response, I either get the full metadata catalog, a more robust response for the GI result, or a similar 500 error. Is there some action required to allow individual metadata calls? Thanks.
Answer
Syntax for Metadata Discovery for Single GI Via OData - 24R1
Best answer by bbohn
Upon further research, this appears to be a common requirement that isn’t supported by ODL at all. It’s not Acumatica specific. The format for Acumatica should be BaseURL/OData/TenantName/$metadata#GenericInquiryName, but the fragment indicator is ignored with the entire document returned.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.