MYOB Advanced API - unable to run the following query "$filter": "LastModifiedDateTime ge '2020-10-10T11:00:00'"

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
KevinBiehl
1 Post
User

1Posts

0Kudos

0Solutions

MYOB Advanced API - unable to run the following query "$filter": "LastModifiedDateTime ge '2020-10-10T11:00:00'"

"$filter": "LastModifiedDateTime ge '2020-10-10T11:00:00'"

 

what should be right datetime format?

 

"message": "An error has occurred.",
"exceptionMessage": "A binary operator with incompatible types was detected. Found operand types 'Edm.DateTimeOffset' and 'Edm.String' for operator kind 'GreaterThanOrEqual'.",

 as error message.

2 REPLIES 2
Hannah_B
MYOB Moderator
142 Posts
MYOB Moderator
Australia
MYOB Moderator

142Posts

33Kudos

25Solutions

Re: MYOB Advanced API - unable to run the following query "$filter": "LastModifiedDateTime ge '2020-10-10T11:00:00'"

Hi @KevinBiehl , 

 

Thank you for reaching out. On this API board, we support AccountRight and Essentials. For help with the MYOB Advanced API, we recommend that you drop an email to the MYOB Advanced API Team at advancedisvs@myob.com. Or visit there website http://developer.myob.com/api/advanced/ 

 

Many Thanks,


Thanks,
@Hannah_B


MYOB API Specialist


MYOB API Support Centre|MYOB App Marketplace|MYOB AccountRight API Endpoint Doc's



Did my answer help?


Mark it as a Solution

bretto36
1 Post
User

1Posts

0Kudos

0Solutions

Re: MYOB Advanced API - unable to run the following query "$filter": "LastModifiedDateTime ge '2020-10-10T11:00:00'"

For anyone else having this issue this is the valid way to filter by date

 

ShipmentDate gt datetimeoffset'2020-07-27T00:00:00Z'


@KevinBiehl wrote:

"$filter": "LastModifiedDateTime ge '2020-10-10T11:00:00'"

 

what should be right datetime format?

 

"message": "An error has occurred.",
"exceptionMessage": "A binary operator with incompatible types was detected. Found operand types 'Edm.DateTimeOffset' and 'Edm.String' for operator kind 'GreaterThanOrEqual'.",

 as error message.


 

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