核心服务 2011 - 地址簿 [英] Core Service 2011 - Address books

查看:29
本文介绍了核心服务 2011 - 地址簿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用核心服务 (Tridion 2011 SP1) 创建 Audience Manager 地址簿?

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

(或以任何其他方式自动创建它们 - db 脚本、Interop?)

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

干杯

推荐答案

核心服务中没有 Audience Manager 功能;只有内容管理器功能在那里公开.

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

但是,您可以使用服务器上的公共 API (Tridion.AudienceManagement.API) 来创建您想要的任何项目.您没有指定要创建的地址簿类型 - 但我假设您希望使用静态地址簿来创建联系人.

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.

以下是一些示例代码:

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.

这篇关于核心服务 2011 - 地址簿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆