User Migration From EPiServer 4.x to CMS5(R2)
by Rizo on jan.21, 2009, under Developing
The new version of EPiServers migration tool is supposed to support user personalization migration to the new enviroment. The good news is that it does migrate all users and generates a new password. The bad news is that it forgets which pages they subscribed too and the interval.
On this project, we also use SubscriptionCategories which basicly sends a newsletter everytime a page is created under that category which of course didn’t get migrated to the new enviroment.
What you need to know is open up a connection to the old database and fill up a datatable with info from tblUserProperty, tblSID and tblUser. You need to bring up the username, email (we use the email as username for all subscribers), interval, categories and which pages they subscribe too. I had to make three different queries to bring up what I needed though, one for the categories, one for the interval and one for the pages. I’m sure that an SQL genius can make it in one call.
Once you’ve filled up your datatable, bind it to a repeater and just print it all out. Might be nice to see it work before you do a full migration atempt. Once in the repeater, I call for the method I made to update the subscription information.
[sourcecode language=’csharp’]
private void UpdateUserSubscription(string user, int page, string categories)
{
EPiServerProfile profile = EPiServerProfile.Get(user);
profile[”SubscribeCategories”] = categories;
profile.SubscriptionInfo.Interval = CheckUserInterval(user);
profile.SubscriptionInfo.SubscribeTo(new PageReference(page));
profile.Save();
}
[/sourcecode]
Basicly, you need to load up the profile you wish to alter and then fill it up with whatever information you need. SubscribeCategories is the custom part of our subscription and the rest is interval and page to subscribe to. Just dont forget to save your profile, otherwise it wont save it to the database. The only time you don’t need to save the profile is if you’re altering the currentuser which is logged in. Then you can call on the methods you like and they will work without save. But when altering users that are not logged in, you’ll always need to save.
2 Comments for this entry
18 Trackbacks / Pingbacks for this entry
-
https://bitcompound.io/
oktober 7th, 2023 on 23:55… [Trackback]
[…] Information on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
ks pod
oktober 13th, 2023 on 01:14… [Trackback]
[…] Find More here on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
ข้อดี สล็อตทรูวอเลท true wallet ดียังไง ?
november 2nd, 2023 on 01:37… [Trackback]
[…] Information to that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
ขายบ้าน
december 12th, 2023 on 05:41… [Trackback]
[…] Find More Info here on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
ทำความรู้จัก ค่ายเกมสล็อต ASKMEPLAY
februari 4th, 2024 on 00:26… [Trackback]
[…] Read More on on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
sig 320
februari 16th, 2024 on 23:27… [Trackback]
[…] Find More here on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
สมัครบาคาร่า lsm99
mars 1st, 2024 on 02:13… [Trackback]
[…] Find More Info here to that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
ks quik
mars 21st, 2024 on 02:36… [Trackback]
[…] Here you can find 64650 more Info on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
ข่าวบอล
april 18th, 2024 on 00:58… [Trackback]
[…] There you can find 38920 additional Info to that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
fake money counterfeit,
juni 5th, 2024 on 07:10… [Trackback]
[…] Find More Information here to that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
5 อันดับ เว็บแท้ เว็บพนันออนไลน์ น่าเชื่อถือมากที่สุดในปี 2024
juni 20th, 2024 on 07:31… [Trackback]
[…] Info on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
disposable vape
juli 27th, 2024 on 13:14… [Trackback]
[…] Here you can find 33703 additional Info on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
เว็บปั้มติดตาม
augusti 5th, 2024 on 01:22… [Trackback]
[…] Find More Information here on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
เช่ารถตู้พร้อมคนขับ
augusti 12th, 2024 on 01:03… [Trackback]
[…] Find More Information here on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
Whore Parody Movie Transsex Sex Movie cuck-old sex voucher My site: anal pussy vouchers transgender Feet Fetish Latina Anal sex Shaved Pussy Medium Tits Small Tits voucher Brunette Mature MILF discount code Anal Sex porn Lesbian vouchers Threesome Promote
augusti 19th, 2024 on 06:10… [Trackback]
[…] Find More here on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
steenslagfolie
augusti 19th, 2024 on 20:08… [Trackback]
[…] Read More here on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
รักษาสิว
september 24th, 2024 on 05:36… [Trackback]
[…] Find More on on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
-
live chat dultogel
oktober 5th, 2024 on 20:05… [Trackback]
[…] Find More Information here on that Topic: from-rizo.se/user-migration-from-episerver-4x-to-cms5r2/ […]
mars 10th, 2009 on 10:04
Thanks for the information!
It worked fine for me with one small ajustment:
If you have a globalized site you also need to add which language the users shall subscribe to, otherwise the subscribers won’t get any mail at all. Write for example the following if you want the users to recive emails for updates och creation of swedish pages:
profile.SubscriptionInfo.SubscribeTo(new PageReference(page),”sv”);
mars 10th, 2009 on 11:32
Indeed. We had to add that to the subscriptions aswell in order to make it work. Kinda silly that they dont get a default language when being migrated 🙂