Difference between revisions of "Pandora - Update Contact (One Record)"
From SmartWiki
Line 24: | Line 24: | ||
==Notes== | ==Notes== | ||
− | Loginfornew = true to enable user access. | + | * Loginfornew = true to enable user access. |
− | + | * Rolelist = "2345,5665" | |
− | Rolelist = "2345,5665" | + | * Usertype = 10=User (default), 30=Local User Administrator, 50=Global User Administrator |
− | + | * active: 0=No access, 1=Administration or Portal Interface, 3=User Centric or Applicant Interface | |
− | Usertype = 10=User (default), 30=Local User Administrator, 50=Global User Administrator | + | * CompanyID needs to be set |
− | + | * IsExternal: 1=External, 0=Internal - driven by company ID | |
− | active: 0=No access, 1=Administration or Portal Interface, 3=User Centric or Applicant Interface | + | * sendpassword: including '''sendpassword''' will trigger the new user password e-mail (you must also include the email address in the recordset): |
− | |||
− | CompanyID needs to be set | ||
− | |||
− | IsExternal: 1=External, 0=Internal - driven by company ID | ||
− | |||
− | sendpassword: including '''sendpassword''' will trigger the new user password e-mail (you must also include the email address in the recordset): | ||
rset.addfieldvaluebyname(idx,"active",1); | rset.addfieldvaluebyname(idx,"active",1); | ||
rset.addfieldvaluebyname(idx,"sendpassword",1); | rset.addfieldvaluebyname(idx,"sendpassword",1); |
Revision as of 11:53, 18 December 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 = "2345,5665"
- Usertype = 10=User (default), 30=Local User Administrator, 50=Global User Administrator
- active: 0=No access, 1=Administration or Portal Interface, 3=User Centric or Applicant Interface
- CompanyID needs to be set
- IsExternal: 1=External, 0=Internal - driven by company ID
- sendpassword: including sendpassword will trigger the new user password e-mail (you must also include the email address in the recordset):
rset.addfieldvaluebyname(idx,"active",1); rset.addfieldvaluebyname(idx,"sendpassword",1); rset.addfieldvaluebyname(idx,"email","email@email.fake");