InvokeUpdate

概要 

API オブジェクトに対して Update メソッドを呼び出します。

構文 

InvokeUpdate(1, 2, 3, 4)

関数のプロパティ 

序数説明
1object必須API オブジェクトのテキストオブジェクト
2variableテキストステータスメッセージ
3variable次の序数で他のテキストオプションを追加する場合に必要な数値エラーコード
4string追加のテキスト値

使用状況 

1SET @sub = CreateObject("Subscriber")
2SetObjectProperty(@sub,"EmailAddress", @email)
3SetObjectProperty(@sub,"SubscriberKey", @subkey)
4
5SET @cid = CreateObject("ClientID")
6SetObjectProperty(@cid, "ID", "1234567")
7SetObjectProperty(@cid, "IDSpecified", "true")
8SetObjectProperty(@sub, "Client", @cid)
9
10SetObjectProperty(@sub,"Status","Active")
11Set @options = CreateObject("UpdateOptions")
12Set @save = CreateObject("SaveOption")
13SetObjectProperty(@save,"SaveAction","UpdateAdd")
14SetObjectProperty(@save,"PropertyName","*")
15AddObjectArrayItem(@options,"SaveOptions", @save)
16/* Here is where we actually update the Subscriber object */
17Set @update_sub = InvokeUpdate(@sub, @update_sub_status, @update_sub_errorcode, @options)