Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a webpart that provides an interface to a new field for users, and when I save the changes, I notice that there arent any new events in the collection returned from the profile.GetChanges() method.

Here is the way I am setting the property:

using (SPSite site = new SPSite(siteUrl))
            {
                SPServiceContext context = SPServiceContext.GetContext(site);
                UserProfileManager manager = new UserProfileManager(context);

                UserProfile profile = manager.GetUserProfile(recordId);
                profile["SPS-School"].Value = serializedData;
                profile.Commit();
            }

The data is being saved, I know that but the change is not being recorded. Am I doing it a different way, or is there a way to force a change token to be created?

Thanks.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

I would start by checking the "Show updates to the property in newsfeed" attribute on the property in question. That may be all that is needed to get it into the change log. It may also be how are you querying for changes. I wrote an article about this with Gary a while back: http://sharepointpromag.com/sharepoint/monitor-sharepoint-user-profile-changes

Matt

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.