Difference between revisions of "Pandora - Update UTA Role Custom Fields (Company or Contact) and Associate Feature"

From SmartWiki
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This function is used to update a single organisation, contact or provider attached to a UTA level 1 or 2 record, or a contact/company association with a contact/company.   
+
This function is used to update a single organisation or contact attached to a UTA level 1 or 2 record, or a contact/company association with a contact/company.   
  
 
  utarole_update(flag,callbackfunc,parenttype,objectid,objecttype,rset)
 
  utarole_update(flag,callbackfunc,parenttype,objectid,objecttype,rset)
Line 19: Line 19:
 
|'''objectid'''|| The intersection ID
 
|'''objectid'''|| The intersection ID
 
|-
 
|-
|'''objecttype'''||Type of object attached to the parent object (23 is  Level 1; 26 is Level 2; 30 is company; 40 is user)
+
|'''objecttype'''|| Type of object attached to the parent object (23 is  Level 1; 26 is Level 2; 30 is company; 40 is user)
 
|-
 
|-
|-'''rset'''|| ssRecordSet object containing data to be updated to the system.  
+
|'''rset'''|| ssRecordSet object containing data to be updated to the system.  
 
|-
 
|-
 
|'''Returns'''||
 
|'''Returns'''||
Line 39: Line 39:
 
  [#(?object=company;orderby=name;)~name~  ~clnkid~ #]
 
  [#(?object=company;orderby=name;)~name~  ~clnkid~ #]
  
 +
 +
==See Also==
 +
* [[Database Field Names]]
  
 
[[Category: Pandora]]
 
[[Category: Pandora]]

Latest revision as of 17:16, 29 January 2014

This function is used to update a single organisation or contact attached to a UTA level 1 or 2 record, or a contact/company association with a contact/company.

utarole_update(flag,callbackfunc,parenttype,objectid,objecttype,rset)
Parameter Description
Flag Asynchronous processing Flag

Set to False for synchronous processing.

Set to True for asynchronous processing.

Callbackfunc User created Java function to manage the callback from an asynchronous function.
parenttype Type of object to attach a child object (23 is Level 1; 26 is Level 2; 30 is company; 40 is user)
objectid The intersection ID
objecttype Type of object attached to the parent object (23 is Level 1; 26 is Level 2; 30 is company; 40 is user)
rset ssRecordSet object containing data to be updated to the system.
Returns

Notes

To get the objectid of a contact association with Level 1 use oprid:

[#(?object=contact)~oprid~ #]

To get the objectid of a company association with Level 1 use opcid:

[#(?object=company)~opcid~ #]

To get the objectid of a contact association with Level 2 use lnkid:

[#(?object=contact)~lnkid~ #]

To get the objectid of a company association with a Level 2 use clnkid:

[#(?object=company;orderby=name;)~name~  ~clnkid~ #]


See Also