Difference between revisions of "Pandora - Update or Create Transaction Intersection to Level 1 or Level 2"

From SmartWiki
Jump to: navigation, search
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
This function is used to update or create an intersection table between a [[Transaction]] and a UTA Level 1 Record.
+
This function is used to update or create an intersection table between a [[Transaction]] and a UTA {{l1}} Record or {{l2}} Record.
  
 
  translink_add(flag,callbackfunc,translinkid,transid,objectid,linktype,recordset)
 
  translink_add(flag,callbackfunc,translinkid,transid,objectid,linktype,recordset)
Line 15: Line 15:
 
|'''transid''' || The transaction ID
 
|'''transid''' || The transaction ID
 
|-
 
|-
|'''objectid'''|| The [[opportunityid|Opportunity ID]]
+
|'''objectid'''|| Use the [[opportunityid|Opportunity ID]] for Level 1 or the Event ID for Level 2
 
|-
 
|-
|'''linktype'''|| The field to be ordered by for the return records.
+
|'''linktype'''|| use '''23''' to connect to Level 1 or '''8''' for Level 2
 
|-
 
|-
 
|'''recordset'''|| The recordset object containing the custom fields to be updated on the intersection table
 
|'''recordset'''|| The recordset object containing the custom fields to be updated on the intersection table

Latest revision as of 14:13, 14 June 2013

This function is used to update or create an intersection table between a Transaction and a UTA Level 1 Record or Level 2 Record.

translink_add(flag,callbackfunc,translinkid,transid,objectid,linktype,recordset)
Parameter Description
Flag True or false, send synchronously or asynchronously.
Callbackfunc Function to be used after the asynchronous function call.
translinkid The transaction link ID (use 0 to create a new link)
transid The transaction ID
objectid Use the Opportunity ID for Level 1 or the Event ID for Level 2
linktype use 23 to connect to Level 1 or 8 for Level 2
recordset The recordset object containing the custom fields to be updated on the intersection table