Hi,
Im trying to make a little check when a user logs in to a extranet. I need to find out if a user are subscribed to certains NewsletterV3 categories.
Here is what I've done so far:
//Get user:
Dynamicweb.Notifications.Standard.User.OnExtranetLoginArgs myUser = (Dynamicweb.Notifications.Standard.User.OnExtranetLoginArgs)args;
//Get reciepient by email:
Dynamicweb.NewsLetterV3.Recipient myRecipient = Dynamicweb.NewsLetterV3.Recipient.GetRecipientByEmail(myUser.User.UserID, myUser.User.Email);
But the script fails ... What am I doing wrong?
/Morten