The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

SDK Example: getCatalogOffers with the contains parameter (Winter '20)

Use the example SDK code in this topic to get catalog offers with the contains parameter.

Possible error conditions:

"GetOffersInput::getAPIPath() must have catalogCode."

"GetOffersContainsInput::getAPIPath() should not have both sortBy and contains."

"GetOffersInput::getAnonymousRestUrl() must have catalogCode."

"GetOffersContainsInput::getAnonymousRestUrl() should not have both sortBy and contains."