Difference between revisions of "Pandora - Add a UTA Role (Company or Contact) and Associate Feature"
From SmartWiki
Line 35: | Line 35: | ||
Parentobject = ID of Level 1, 2 or 3 or company ID | Parentobject = ID of Level 1, 2 or 3 or company ID | ||
− | |||
RoleID = Role | RoleID = Role | ||
+ | |||
+ | |||
+ | ===Consumer/Provider=== | ||
+ | Level 1 Provider to Level 1 Consumer: | ||
+ | utarole_add(false,"",23,PROVIDER_OPPORTUNTYID,23,CONSUMER_OPPORTUNTYID,ROLEID,rset); | ||
+ | |||
+ | Level 1 Provider to Level 2 Consumer: | ||
+ | utarole_add(false,"",23,PROVIDER_OPPORTUNTYID,26,CONSUMER_EVENTID,ROLEID,rset); | ||
+ | |||
+ | Level 2 Provider to Level 1 Consumer | ||
+ | utarole_add(false,"",26,PROVIDER_EVENTID,23,CONSUMER_OPPORTUNTYID,ROLEID,rset); | ||
+ | |||
+ | |||
[[Category: Pandora]] | [[Category: Pandora]] |
Revision as of 16:01, 28 March 2013
This function is used to associate a single organisation or contact with a UTA level 1, 2, or 3 record. This function is also used to associate a contact with an organisation record through the Associate/Association feature and to create Consumer/Provider relationships
utarole_add(flag,callbackfunc,parenttype,parentobject,childtype,childoject,roleid)
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 (use 23 for Level 1, 26 for Level 2) |
parentobject | The ID of the parent object |
childtype | Type of child object to be attached to the parent object (30: company, 40: user) |
childobject | The ID of the child object |
Returns |
Notes
Associate a company or a contact with a Level 1
Parent type could be level 1, 2 or 3 or company (for the associate)
Parentobject = ID of Level 1, 2 or 3 or company ID
RoleID = Role
Consumer/Provider
Level 1 Provider to Level 1 Consumer:
utarole_add(false,"",23,PROVIDER_OPPORTUNTYID,23,CONSUMER_OPPORTUNTYID,ROLEID,rset);
Level 1 Provider to Level 2 Consumer:
utarole_add(false,"",23,PROVIDER_OPPORTUNTYID,26,CONSUMER_EVENTID,ROLEID,rset);
Level 2 Provider to Level 1 Consumer
utarole_add(false,"",26,PROVIDER_EVENTID,23,CONSUMER_OPPORTUNTYID,ROLEID,rset);