Difference between revisions of "Pandora - Update Contact (One Record)"

From SmartWiki
Jump to: navigation, search
(Created page with 'This function will update a single user record or create a new user record. contact_update(flag,callbackfunc,rset,loginfornew) {| border="1" !Parameter !Description |- |'''Fla…')
 
Line 35: Line 35:
  
 
IsExternal = 1 or 0 (Internal) - driven by company ID
 
IsExternal = 1 or 0 (Internal) - driven by company ID
 +
 +
sendpassword = 1  - will trigger the new user password e-mail (you must also include the email address in the recordset):
 +
  rset.addfieldvaluebyname(idx,"sendpassword","1");
 +
  rset.addfieldvaluebyname(idx,"email","email@email.fake");
 +
  
 
[[Category: Pandora]]
 
[[Category: Pandora]]

Revision as of 11:58, 20 April 2012

This function will update a single user record or create a new user record.

contact_update(flag,callbackfunc,rset,loginfornew)
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.
rset ssRecordSet object containing data to be updated to the system.
loginfornew Set to true to enable user access.
Returns

Notes

Loginfornew = true to enable user access.

Rolelist = "234,566"

Usertype = 10, 30, 50

Isactive = 0, 1 admin, 3 user centric or applicant

CompanyID needs to be set

IsExternal = 1 or 0 (Internal) - driven by company ID

sendpassword = 1 - will trigger the new user password e-mail (you must also include the email address in the recordset):

  rset.addfieldvaluebyname(idx,"sendpassword","1");
  rset.addfieldvaluebyname(idx,"email","email@email.fake");