microsoft / Dynamics365Commerce.Solutions

Repository for hosting the Dynamics 365 Commerce end to end sample solutions
Other
58 stars 26 forks source link

Unable to read a single entity using RetilProxy methods #306

Open shahbazchishty opened 4 months ago

shahbazchishty commented 4 months ago

Discussed in https://github.com/microsoft/Dynamics365Commerce.Solutions/discussions/304

Originally posted by **shahbazchishty** June 28, 2024 Hi, We have a custom method at CSU using which we wish to return a single response object in response. We are able to return proper data in response but still Retail Proxy is not able to identify it as JSON object. We are getting error "InvalidOperationException: The response payload is a not a valid response payload. Please make sure that the top level element is a valid Atom or JSON element or belongs to 'http://docs.oasis-open.org/odata/ns/data' namespace." It is able to convert if I call any standard methods like GetCustomer but it is not working for our custom CommerceEntity
shahbazchishty commented 4 months ago

I've also tried creating a Binded controller but still got the same error.