Pandora - Find a Level 1 Contact

From SmartWiki
Jump to: navigation, search

Function Overview

This function is used to find a Level 1 contact.

levelonecontact_find(flag,callback,appid,opportunityid,fields,filter,"",0,1
Parameter Description
Flag True or false, send synchronously or asynchronously.
Callbackfunc Function to be used after the asynchronous function call.
appid
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.
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=??


To find the role assigned to the L1 with the field is oprid:

  • var fields="oprid";
  • var filter=,"opr.contactid=@me.userid@";
  • var grs=levelonecontact_find(false,"",appid,opportunityid,fields,filter,"",0,1);
  • var od=grs.getfieldbyname(1,'oprid');