首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >exacttarget预制件自动化

exacttarget预制件自动化
EN

Stack Overflow用户
提问于 2014-01-09 17:57:42
回答 1查看 451关注 0票数 0

我正在尝试使用.net中的SOAP在C#中触发ExactTarget上的自动化

到目前为止,我已经找到了示例页面help.exacttarget.com/en-GB/technical_library/web_service_guide/technical_articles/interacting_with_automation_studio_via_the_web_service_soap_api/

它表示变量performResponse = soapClient.Perform(performRequest);

然而,soapClient.Perform不需要一个单独的参数。

到目前为止,我得到的是这个

代码语言:javascript
复制
Automation automation = new Automation();
PerformOptions options = new PerformOptions();
automation.CustomerKey = "53ba121d-2934-90d6-d86d-e0662c656165";
automation.ScheduledTime = DateTime.Now;
automation.ScheduledTimeSpecified = true;
automation.IsActive = true;
automation.AutomationSource = new AutomationSource()
{
   AutomationSourceID = Guid.NewGuid().ToString(),
   AutomationSourceType = "RestAPI"
};

automation.Notifications = new AutomationNotification[0];
//   automation.ObjectID = "7d88eb5b-80ea-43bb-97b2-4067aaa19c35";
automation.PartnerProperties = new APIProperty[0] { };
// automation.PartnerKey = "53ba121d-2934-90d6-d86d-e0662c656165";

string sA;
string sB;
string sC;


PerformResult[] steve = soapClient.Perform(new PerformOptions(), 
"start", new APIObject[] { automation }, out sA, out sB, out sC);

谁能帮我一把,或者给我举个简单的例子

谢谢。

EN

回答 1

Stack Overflow用户

发布于 2014-01-10 20:24:17

我主要使用Java与ET交互,但我可以提供一些提示:

  • 尝试创建自动化第一个方法如果自动化已经存在,请尝试查找/检索它
  • 您可以将检索到的对象传递给
    • ,以执行

我认为如果object已经存在,那么CustomerKey应该足以满足您的需求,您不需要再指定任何东西。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21016861

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档