When setting fields as hidden does this keep them from appearing in API calls? | Community
Skip to main content
Level 2
February 27, 2020
Question

When setting fields as hidden does this keep them from appearing in API calls?

  • February 27, 2020
  • 1 reply
  • 2437 views

My developer has connected to Marketo via REST API - When we plug in the list of fields into the query to perform an export the fields that are set as Hidden cause an error during the call for query.  Any work around to make those fields available in the API?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
February 27, 2020

How are you deriving the list of fields in the first place? Are you using the Describe Lead endpoint? There should not be a situation where you're trying to get fields you know in advance are hidden/nonexistent.

tmusanteAuthor
Level 2
February 27, 2020

Using a list of fields downloaded via the UI and throwing it into an export query via the Rest API.  The odd part is that the hidden fields come thru on the list of fields in the list.

SanfordWhiteman
Level 10
February 27, 2020

It's not that odd as the fields are still synced and are still visible in Field Management, even while hidden. The UI export reflects what you can see in the UI.

 

You should be using the Describe Lead API endpoint, which will not return hidden fields. It's specifically designed for this scenario; the UI export is not.