MYOB API Filtering using Custom List

sajju-thambi
3 Posts
User

3Posts

0Kudos

0Solutions

Solved: Go to Solution

MYOB API Filtering using Custom List

Hi,

 

Does API supports filtering using a custom list? I need to get all suppliers that have a specific Custom List 1 value. Is this possible? If yes how to provide the filter?

 

Any help and suggestions will be highly appreciated.

 

Thanks

Sajju

6 REPLIES 6
Genreve_S
MYOB Moderator
2,908 Posts
MYOB Moderator
MYOB Moderator

2,908Posts

90Kudos

387Solutions

Re: MYOB API Filtering using Custom List

Hi @sajju-thambi

 

Welcome to the Community Forum. 

 

I believe forum users that have experience with this will be able to respond to your query. Additionally, you can reach out to the integration team via this link

 

In the meantime, feel free to create a new thread if you require any other assistance.

 

Thanks,

Genreve

Mike_James
Ultimate Partner
5,867 Posts
Ultimate Partner
New Zealand
Ultimate Partner

5,867Posts

1,028Kudos

756Solutions

Re: MYOB API Filtering using Custom List

Hi @sajju-thambi , this is documented at MYOBapi Developer Centre, in particular:

 

Retrieving Data (myob.com)

 

The $filter query can be added to the endpoint request:

.../?$filter=Customlist1 eq '<your value>'


Regards, Mike (mike@datawise.co.nz)
DataWise Limited (www.datawise.co.nz), developers of:
DataWise ProActive - Custom Reporting from MYOB programs
(MYOB Business, including AccountRight Live, AccountRight v19.x and exo Payroll)

Bulk download of attachments (more details...)

sajju-thambi
3 Posts
User

3Posts

0Kudos

0Solutions

Re: MYOB API Filtering using Custom List

Hi Mike,

Many thanks for your response. I tried what you suggested. But API returns Validation Error. Please see below the error message received.

<Please check your OData query: A binary operator with incompatible types was detected. Found operand types 'MYOB.AccountRight.API.Version2.Contracts.Identifier' and 'Edm.String' for operator kind 'Equal'.>

 

Cannot make out what this error is. Could you kindly guide me where I went wrong?

 

Thanks

Sajju

JeremyF
Experienced User
35 Posts
Experienced User
Experienced User

35Posts

4Kudos

4Solutions

Accepted Solution Solved

Re: MYOB API Filtering using Custom List

Sajju

 

You might need to try changing your odata query to Customlist1/Label eq '<your value>'

or Customlist1 /Value eq '<your value>'

 

Depending on which one you want

 

cheers

JF

sajju-thambi
3 Posts
User

3Posts

0Kudos

0Solutions

Re: MYOB API Filtering using Custom List

Thanks a lot JF. It worked.

 

Cheers

Sajju

Mike_James
Ultimate Partner
5,867 Posts
Ultimate Partner
New Zealand
Ultimate Partner

5,867Posts

1,028Kudos

756Solutions

Re: MYOB API Filtering using Custom List

Hi @JeremyF , thanks for correcting my inaccurate effort!


Regards, Mike (mike@datawise.co.nz)
DataWise Limited (www.datawise.co.nz), developers of:
DataWise ProActive - Custom Reporting from MYOB programs
(MYOB Business, including AccountRight Live, AccountRight v19.x and exo Payroll)

Bulk download of attachments (more details...)

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post