Difference between revisions of "Pandora - Find a Level 1 Contact"

From SmartWiki
Jump to: navigation, search
Line 47: Line 47:
 
Prefix=??
 
Prefix=??
  
==Example==
+
 
The role with which the contact assigned to the Level 1 record is stored in the '''oprid''' field:
+
'''Note:''' The role ([[roleid]]) with which the contact assigned to the Level 1 record is stored in the '''oprid''' field:
 
  var fields="oprid";
 
  var fields="oprid";
 
  var filter="opr.contactid=@me.userid@";
 
  var filter="opr.contactid=@me.userid@";

Revision as of 11:05, 9 August 2010

Function Overview

This function is used to find a Level 1 contact.

levelonecontact_find(flag,callback,appid,opportunityid,fields,filter,order,start,end)
Parameter Description
Flag True or false, send synchronously or asynchronously.
Callbackfunc Function to be used after the asynchronous function call.
appid Application ID for the UTA.
opportunityid The role assigned to the L1 with the field.
Fields The field list to be retrieved.
Filter The criteria to apply on the return records.
Order The field to be ordered by for the return records.
Start The index of the first record to be returned from the record set retrieved based on the filter.
End The index of the last record to be returned from the record set retrieved based on the filter.
Returns ssRecordSet object


Notes

Fields = always the driver for created record set.

Filter = 'lastname like "y*"'

Order = 'lastname desc'

Start = 0 to 200 default = 0

End = 200 default = 200

Blank ,"","",

Prefix=??


Note: The role (roleid) with which the contact assigned to the Level 1 record is stored in the oprid field:

var fields="oprid";
var filter="opr.contactid=@me.userid@";
var rs=levelonecontact_find(false,"",12345,opportunityid,fields,filter,"",0,1);
var assignedRoleID=rs.getfieldbyname(1,'oprid');