exacttarget瓶坯自动化

时间:2014-01-09 09:57:42

标签: c# .net soap exacttarget

我正在尝试使用C#

中的.net中的SOAP触发ExactTarget的自动化

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

表示var performResponse = soapClient.Perform(performRequest);

然而,soapClient.Perform不会带一个烧焦的文章。

到目前为止,我所拥有的是

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);

任何人都可以帮我一把或给我一个简单的例子

感谢。

1 个答案:

答案 0 :(得分:0)

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

  • 尝试首先创建自动化
  • 如果已经存在自动化,请尝试查找/检索它
  • 您可以将此检索到的对象传递给Perform method

我认为如果对象已经存在,那么CustomerKey应该足以满足您的需求,您不需要再指定了。