Table of Contents Previous Next

Sugar Developer Guide

Version 5.1


Chapter 2 Application Framework : Web Services : Get the fields for a module

Get the fields for a module
If you want to create a record (an entry) but don't have any fields to work with and there are no results in the database, you can get a list of the available fields for a module. You use get_module_fields.
Call: get_module_fields
o
string:session – the session_id
o
string:module_name – the module that you want a list of fields for
o
complex-type: module_fields – these are the fields to use
module_fields is a new complex type introduced in this section. It is a struct containing three parameters:
string:module_name – the module name for the fields
complex-type:module_fields - (field_list) – these are the fields
complex-type:error (error_value) - any errors that occurred

Table of Contents Previous Next

Copyright 2004-2008 SugarCRM Inc.
Product License