Difference between revisions of "Pandora - Loading Variables"

From SmartWiki
Jump to: navigation, search
(Created page with 'This function is used to obtain any variable values, and is often used for System Variables. variables_replace(flag,callbackfunc,objecttype,objectid,variable) {| bord…')
 
Line 14: Line 14:
 
|'''[[objecttype]]''' || The [[Object Type ID]] of the object with the desired value
 
|'''[[objecttype]]''' || The [[Object Type ID]] of the object with the desired value
 
|-
 
|-
|'''objectid'''|| The object id ([[opportunityid]], [[userid]], [[companyid]], etc) of the entity with the desired value
+
|'''objectid'''|| The object id ([[opportunityid]], [[userid]], companyid, etc) of the entity with the desired value
 
|-
 
|-
 
|'''variable'''|| The variable name (ie: ''@this field@'' or '''@system.this variable@''')
 
|'''variable'''|| The variable name (ie: ''@this field@'' or '''@system.this variable@''')

Revision as of 14:40, 5 August 2010

This function is used to obtain any variable values, and is often used for System Variables.

variables_replace(flag,callbackfunc,objecttype,objectid,variable)


Parameter Description
flag True or false, send synchronously or asynchronously.
callbackfunc Function to be used after the asynchronous function call.
objecttype The Object Type ID of the object with the desired value
objectid The object id (opportunityid, userid, companyid, etc) of the entity with the desired value
variable The variable name (ie: @this field@ or @system.this variable@)


  • The objecttype and objectid provide the context for the variables_replace search (ie: if the variable is a user variable use 40 and the userid of the user)
  • The variables_replace function returns the result in recordset in a field named msg

See Also