Changes

Pandora - Find a Level 1 Contact

210 bytes added, 15:53, 27 November 2012
no edit summary
var drs=levelonecontact_find(false,"",appid,@opportunityid@,"contactid","opr.roleid=12345","",0,100);
* Find the role the current user is assigned with on a given Level 1 record, and the intersection ID :* You need the intersection ID if you want to update Custom Fields on the intersection, or trigger a UTA Role Assignment Workflow.
var fields="oprid";
var filter="opr.contactid=@me.userid@";
var rs=levelonecontact_find(false,"",appid,opportunityid,fields,filter,"",0,1);
var assignedRoleID=rs.getfieldbyname(1,'oprid');
var intersectionID=grs.getfieldbyname(1,'oprid')
 
 
==See Also==
0
edits