Writing values to a Moss2007 user profileAugust 28, 2008 9:14
At the end it turned out to be very simple to update the values in a user profile: just update the value in the property and then do a Commit on the profile.
using (SPSite site = new SPSite(”http://sharepointsite”))
Tags: commit, property, user profile, web service.
{ UserProfileManager uPMgr = new UserProfileManager(ServerContext.GetContext(site)); UserProfile profile = uPMgr.GetUserProfile(”Administrator”); profile["WorkEmail"].Value = “newemail@address.com”; profile.Commit(); } How to quickly edit multiple Web Service urls inside an InfoPath formNovember 10, 2007 20:06
One of my current projects included 5 InfoPath forms with each 6 web services. Clicking through the Data Connection Wizard to update the url would take quite some time and I only needed to change the location. My test environment used the same web service as in production, but because of the different server name I had to update the urls to make the InfoPath forms work. I found some interesting instructions in the InfoPath documentation and I decided to take it to the test. It turned out to be a good and quick way to update the urls. If you are facing the same situation as me follow these steps: Tags: connection wizard, data connection, Infopath, manifest, source files, web service. |
||