- Mark as New
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-28-2020
02:51 AM
05-28-2020
02:51 AM
PostmanでAPIを実行し、複数のサブスクリプションのカスタムフィールドを一括更新する手順
PostmanでAPIを実行し、複数のサブスクリプションのカスタムフィールドを一括更新する手順を紹介します。
https://www.getpostman.com/
■手順
1, データソース機能で、サブスクリプションのIDをCSVにエクスポート
※今回は「ステータス 有効」のサブスクリプションを対象とします。
2, ファイルをダウンロード
3, ダウンロードしたファイルを開いて、列名を「id」にする
4, Postmanで、Collectionを作成
5, 新規タブで以下のように設定し、SaveをクリックしてCollection内に保存
・メソッド: POST
・URL: https://rest.apisandbox.zuora.com/v1/action/update
・Authentication: 対象環境のユーザーログイン情報を設定
・Bodyに以下のリクエストボディを入力
{ "objects": [ { "Id": "{{id}}", "test222__c": "カスタムフィールドを更新します。" } ], "type": "Subscription" }
※「test222__c」はサブスクリプションのカスタムフィールドです。
6, 当該Collectionの右上の三角マークをクリックし、「Run」をクリック
7, CSVファイルを選択して、「Run "Collection名"」をクリックしてAPIを実行
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √