Re: How can I get all opportunities via the REST API?

Ilya_Volodarsky
Level 1

How can I get all opportunities via the REST API?

How can I get all opportunities (unconditionally) via the REST API? I've tried this endpoint, but it errors if I don't pass in filterTypes and filterValues (though docs say the latter is optional). That said, based on docs, the getMObjects() SOAP API method​ doesn't seem to have this restriction.

1 REPLY 1
Grégoire_Miche2
Level 10

Re: How can I get all opportunities via the REST API?

Hi Ilya,

I think the doc is wrong in fact. If flitertype is mandatory, you have to pass some values to the filter as well.

-Greg