Developer forum

Forum » Development » Some classes and method seem to be missing after upgrading from DW 7 to DW8?

Some classes and method seem to be missing after upgrading from DW 7 to DW8?

Judy Zhang
Reply

 

Hi,

I am working on solution which was upgraded from DW7(19.2.9.3) to DW8(8.2.1.2). And I need to build some custom dll's under the new version.

But some of the methods which are used in DW 7 can't be found from DW8?

Fx. NewsLetterV3.NewsLetter, I can no longer find it from DW8 API (http://developer.dynamicweb-cms.com/api8/),
 is there anyone here can tell me where to find the NewsLetterV3's API or tell me where to find the methods or classes mentioned below from DW8?
Or are they removed?

 

NewsLetterV3.NewsletterItem.SaveCategory(newNlGroup.ID, NewsLetterV3.Consts.CategoryType.Email);
Recipient r = new   Recipient(user.ID);
r.Unsubscribe(g.ID);
string stPassword = NewsLetterV3.RandomPassword.Generate();
Subscription newSubscription = new Subscription((int )newscatID, Dynamicweb.Modules.Common.Constants . MailFormat.HTML);

Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
This post has been marked as an answer

Hi Judy,

 

With the API changes in DW8, the NewsletterV3 namespace was moved to a separate assembly called "Dynamicweb.Compatibility". To use the NewsletterV3 API, please import this assembly and update your usings to point to "Dynamicweb.Compatibility.NewsLetterV3".

 

Hope this helps :)

 

- Jeppe

Votes for this answer: 1
 
Judy Zhang
Reply

Thank you!

 

 

 

You must be logged in to post in the forum