Get field properties for a module via Web Services

sugarcrmdevelopers —  November 27, 2012 — Leave a comment

I saw this thread on StackOverflow recently, and after chiming in with a response I thought it would be something worth touching on in a blog post. Basically, how does one get some of the attributes for a field using web services.

You can easily do this with a call to the get_module_fields web services call like this…

This gives you back a huge data structure with all of the details. Here’s what it looks like…

This gives you all the field defintion details, include type, display label, and options if it’s a dropdown or multienum field. All strings will be translated according to the current user’s language preference as well.

No Comments

Be the first to start the conversation!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s