Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
Hi there @Kais,
You sure can - its hard to tell from your sample since the full oData filter you're providing is truncated however you'll need to cast the ID to a guid as part of your odata filter.
For example you could try:
https://api.myob.com/accountright?$filter=Id eq guid'7df29aa9-52f3-4f3a-ab87-9d9deda88913'
You could also query directly to the API:https://api.myob.com/accountright/7df29aa9-52f3-4f3a-ab87-9d9deda88913
The difference is that the first URL will give you a JSON array of one object in the array and the second will give you a JSON object (of the file you're looking for).
Hope this helps,
I'm trying to retieve a company file by applying a filter. It seems the filter doesn't work with company files.
I'm getting the error:
ApiValidationException: Encountered a validation error (https://api.myob.com/accountright/?$filter=Id eq '.......
Is it a right way to retrieve one file?
Solved! Go to Solution.