API
Version 7.x > API > Upadate Cutom Field data in User table and user Settings table using API View modes: 
User avatar
Member
Member
jack.Ryder-ymail - 1/22/2014 3:57:36 AM
   
Upadate Cutom Field data in User table and user Settings table using API
Can any one help me to sort out my problem regarding Create and Updating custom field data in to user and usersetting table using API?????

User avatar
Certified Developer 10
Certified Developer 10
josha-bpstudios - 1/22/2014 12:01:25 PM
   
RE:Upadate Cutom Field data in User table and user Settings table using API
Go into the cmssitemanager and development tab. Under system tables you can select the usersettings table(classname=cms.usersettings). This is where you can add your field. Then, in your code, set the
UserInfo object = UserInfoProvider.GetFullUserInfo(userid);
//this brings in the usersettings info as well. After that, you can get any value with the
object.GetValue("dbFieldName")
and set it with
object.SetValue("dbFieldName")
The dbFieldName will be the same name that you name the new column in the usersettings table.