General - .NET User Groups General issues with editing, development and graphic design.
Kentico CMS for .NET User Groups > General - .NET User Groups > Update custom field via API View modes: 
User avatar
Member
Member
steveyu-syfolink - 7/30/2010 4:16:07 AM
   
Update custom field via API
I want to know if I created a custom field under user profile, how could I update specified custom fields via API ?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/30/2010 2:32:40 PM
   
RE:Update custom field via API
Hello,

you can use the method:
CMS.SiteProvider.UserInfo.SetValue(string columnName, object value)

Best regards,
Helena Grulichova

User avatar
Member
Member
AlgarveWeb - 3/11/2011 3:40:33 AM
   
RE:Update custom field via API
Hi

Sounds easy to do but how/where do I tell Kentico which User he should update?

Will need this for a Custom Registration Web-Part where the user has to fill in lots of data inside Custom Fields.

Thanks,

Mike

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 3/11/2011 7:16:52 AM
   
RE:Update custom field via API
Hi,

how to update user's profile is described here:
Selecting and updating a user

If you are using a custom registration form webpart, you could create an alternative form with requested custom fields. Then the API update of user's profile is not needed.

Best regards,
Ivana Tomanickova