Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Core Service 2011 - Address books

Tags:

tridion

Is it possible to create Audience Manager Address Books using the Core Service (Tridion 2011 SP1)?

(Or automate creating them in any other way - db script, Interop?)

Cheers

like image 838
Neil Avatar asked Jun 09 '12 15:06

Neil


1 Answers

There is no Audience Manager functionality in the Core Service; only Content Manager functionality is exposed there.

You can, however, use the public API (Tridion.AudienceManagement.API) on the server to create any item you want. You didn't specify the kind of Address Book you want to create - but I'm going to assume you want a static one to create Contacts in.

Here is some sample code to do that:

StaticAddressBook denmark = new StaticAddressBook();
denmark.Title = "Denmark";
denmark.Key = "DK";
denmark.Save();

If you want to create a Dynamic Address Book instead, you'll need to specify a filter too; let me know if that's the case and I can provide some sample code for that too.

like image 153
Peter Kjaer Avatar answered Oct 26 '22 03:10

Peter Kjaer