OData service across companies

The OData service in Dynamics 365 for Operations returns data from user’s default company. But you can easily add cross-company=true to the URL (e.g. https://myaos.cloudax.dynamics.com/data/Customers?cross-company=true) to get data from all companies. You can also filter the query by DataAreaId field, if you want data from a specific company. But developers usually don’t construct the URL …

Continue reading ‘OData service across companies’ »

JSON-based custom service with parameters (AX 7)

Dynamics 365 for Operations deploys custom web services in two ways: as SOAP-based services and JSON-based services. AX developers are often familiar with SOAP services (which were used in AX 2012), but JSON-based ones are new to them. One particular challenge is passing arguments to a service. Let’s say we have an Add operation, which …

Continue reading ‘JSON-based custom service with parameters (AX 7)’ »

ReceivedFault is not marked as serializable

Minulý týden jsem potřeboval použít v AX2009 jednu webovou službu poskytovanou třetí stranou. Vytvořil jsem referenci v AOT, takže AX vygenerovala potřebný kód a konfiguraci a já jsem byl okamžitě schopný získat data z webové služby. Skvělé. Ale nepsal bych o tom, pokud by to bylo všechno. Ta daná webová služba se bude používat interaktivně …

Continue reading ‘ReceivedFault is not marked as serializable’ »

ReceivedFault is not marked as serializable

Last week I needed to use a third-party web service in AX2009. I created a service reference in AOT, so AX generated necessary code and configuration and I was immediately able to get data from the service. Quickly done, almost without any work. Great. But I wouldn’t write about it if that was all. The …

Continue reading ‘ReceivedFault is not marked as serializable’ »