LoginSignup
2
1

More than 3 years have passed since last update.

ZohoCRMで選択リストの変更履歴をAPIで取得する

Posted at

ZohoCRMで選択リストの変更履歴をAPIで取得したくなったのでやってみました。

手順

  1. ZohoCRMの設定ページにて、履歴取得対象項目のプロパティから、選択リストの値の履歴を有効にするを選択
  2. https://www.zohoapis.com/crm/v2/settings/related_lists?module={module-api-name}
    から関連リストの一覧を取得し、変更履歴のapi_nameを特定

    • module_api_name: 履歴取得対象の項目を持っているタブのAPI名
  3. https://www.zohoapis.com/crm/v2/{module_api_name}/{record_id}/{related_list_api_name}
    から履歴を確認したいレコードの変更履歴を取得

    • module_api_name: 履歴取得対象の項目を持っているタブのAPI名
    • record_id: 履歴を確認したいレコードのID
    • related_list_api_name: 2で特定した変更履歴のAPI名
  4. 対象レコードの選択リスト変更履歴が取得できましたー

ちなみに

変更履歴を格納するタブは、LinkingModuleN(N=連番)というAPI名で生成されます。

https://www.zohoapis.com/crm/v2/LinkingModuleNでレコード一覧を取得しても、
どのレコードの変更履歴なのか特定する項目が見当たりませんでした。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1