I'm looking for a way to get the custom fields of a list but only those that are set to visible in the preference center.
Is this possible?
If not, is there a way to filter them out or some work around?
I could not find it in the documentation.
Hi dio5, not at present, I'm sorry to say. When you request custom fields for a given list, all custom fields are returned. Happy to add your vote for an extra attribute if it's something you would like to see in the future :)
Thanks for getting back to me. Yes, I was aware of how to get the custom fields but as you mention it doesn't have the 'visible' attribute.
Would be a great addition!
Thanks, Dieter - I'll add your vote. Hopefully we'll add this in the future :D
Just a quick note to let you know that we've recently added the VisibleInPreferenceCenter field to custom fields.
A summary of all today's API updates is available over at our API Announcements forum topic.
Hope that helps.