0

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

誰か私に手を貸してくれるか、簡単な例を見せてもらえますか

ありがとう。

4

1 に答える 1

0

私は主に Java を使用して ET とやり取りしていますが、いくつかのヒントを提供できます。

  • 最初に自動化を作成してみてください
  • 自動化が既に存在する場合は、それを見つけて取得してみてください
  • この取得したオブジェクトを Perform メソッドに渡すことができます

オブジェクトが既に存在する場合は、 CustomerKey で十分であると思います。これ以上指定する必要はありません。

于 2014-01-10T12:24:17.367 に答える