We've got a page which allows the customer to update their subscription(s) which calls NewsletterStudio.Api.Subscribe however it doesn't seem to update the subscriber's name.
Looking at the code it looks as though it only updates the status of the subscriber:
Correct, I'd make the name optional though so something like this:
if(!string.IsNullOrWhiteSpace(name))
subscriber.Name = name
So at least you then have the option of not providing a name (although looking elsewhere in your codebase, you're always assigning a name -using the start of the email?).
Name not updated on Subscribe
We've got a page which allows the customer to update their subscription(s) which calls
NewsletterStudio.Api.Subscribe
however it doesn't seem to update the subscriber's name.Looking at the code it looks as though it only updates the status of the subscriber:
Could you change it so it also updates the name so we don't have to do two calls please.
Thanks.
Hi!
Thanks, I guess that you mean that if you provide an email that already exsists the name would not be updates?
I've added this as a fix for upcoming release.
Correct, I'd make the name optional though so something like this:
So at least you then have the option of not providing a name (although looking elsewhere in your codebase, you're always assigning a name -using the start of the email?).
Tim
Hi!
This is included in the new release 2.1.9.2.
https://www.newsletterstudio.org/download/
// m
is working on a reply...