Examples: Explorer_Add_Column_To_Object


The following example adds a new column to the Customers SmartList object. This column will not be included in the default query for the SmartList object.

local integer l_error;
local string l_message;
local integer display_sequence, field_sequence;

{Add additional columns to the Customer object for SmartList}
call with name "Explorer_Add_Column_To_Object" in dictionary SMARTLIST,
	DYNAMICS,
	SMARTLIST_OBJECTTYPE_CUSTOMERS,
	IG_PROD_ID,
	resourceid(field 'First Contact Date'),
	"First Contact",
	"First Contact Date",
	false, {Do not include in default query}
	SMARTLIST_DATATYPE_DATE,
	1,
	false,
	false,
	display_sequence,
	field_sequence,
	l_error;

if (l_error <> OKAY) or (l_error <> DUPLICATE) then
	warning "Error "+ str(l_error) +" occurred writing the SmartList column.";
end if;


Documentation Feedback