Sorry, forgot one thing. You need to activate the feature to use custom data as if you don't need it it will fill up the database with database with unnecessary data.
So go to "General settings" and check the "Activate custom data collection", save and try again
How to implement interface for CustomData in SubscriptionProvider?
In the version 2.1 how do we integrate the customData function into the CustomSubscriptionProvider?
Say, if we are fetching the subscription list from external source and wish to collect the customData with it (like salutation, TelNo etc.).
Can you share an example function how this can be done within customsubscriptionprovider?
What I see for the baseprovider are following methods (in 2.1);
Hi!
It's just to add the data to the Data-collection on the Receiver-object in your provider.
This is a snippet from the new provider for the new Umbraco Members API looks:
}
Thanks for the pointers.
For instance the default return for GetSubscribersForSendOut () is something like;
In this case how do you pass 'custom data' in the return value from GetSubscribersForSendOut?
Hi!
Just rewrite your code and add a collection with custom data to the Data-property of your Receiver-object like in the example that I posted.
Cheers!
//m
I have actually tried something like this;
And when i compile, send test blast to the list, I dont see the customData captured in EmailTrackingItems table CustomData column.
Is there something else to it?
cheers!
In the above example, the custom data is added by
what should be the return call, as this doesnt seem to work:
how do we return the .data in that return call?
In this line
You are creating a new collection of Receiver-objects without adding the datacollection to it. Should be:
Yes that works. Thanks Markus!
I can see the data like Salutation in the customData column.
When we use the placeholder in the email body like
Dear [Salutation]
it doesnt replace it automatically, does this mean one needs to write a rendertask for these? Not sure if I'm getting it right.
Thank you!
Hi!
This feature is a little "undocumented" at the moment.
Make sure that you're last render task in /config/newsletterStudio.config is:
<task name="InsertCustomDataRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.InsertCustomDataRenderTask, NewsletterStudio" />
Make sure that you use the merge fields like this [#nameOfListItem]
I checked the newsletterconfig and the last task is indeed set to that, InsertCustomDataRenderTask, re-checked for spelling too.
Now if i go back and add like [#Salutation] in the email body and blast it, it doesnt seem to replace anything.
When i check the column in the ns table it looks like this;
{"Salutation":"Mr","ID":"0123456","Firstname":"Test","LastName":"Tester"}
what is missing in this case?
Hi!
Sorry, forgot one thing. You need to activate the feature to use custom data as if you don't need it it will fill up the database with database with unnecessary data.
So go to "General settings" and check the "Activate custom data collection", save and try again
=D
That was it! It works after enabling the new setting attribute.
Thank you
Great news!
Thank you!
is working on a reply...