GETTING STARTED
GETTING META DATA
WITH JSON REQUEST

As part of the advanced search controller service, you can retrieve the meta data for the structure supporting the object.

You construct the search request in the same way, except specify the returnparameters option. 

You can get full details on the advanced search page.

If you want to use JSON format to send request then you must use the newer /rpc endpoint.


Example:

function GetMeta()
{
	var sURL = '/rpc/contact/?method=CONTACT_PERSON_SEARCH&advanced=1';
	var sData = '';
	var oSearch = {};

	oSearch.options = {};
	oSearch.options.rf = 'JSON';
	oSearch.options.returnparameters = 'contactperson';

	sData = JSON.stringify(oSearch);

	$.ajax(
	{
		type: 'POST',
		url: sURL,
		data: sData,
		success: function(asData)
		{ 
			conole.log(asData)
		}, 
		dataType: 'JSON'
	});
}

 

REFERENCES

Advanced Search

Sending JSON to Advanced Search

Help!