From f554bfd3eedd775d11ff15e9f3e713c3523deb99 Mon Sep 17 00:00:00 2001 From: Austin Weisgrau Date: Mon, 21 Aug 2023 17:45:49 -0700 Subject: [PATCH] Revert "Enable passing `identifiers` to ActionNetwork `upsert_person()` (#861)" This reverts commit 77ead6079ee03c399bbc83314351bc719ed457c3. --- parsons/action_network/action_network.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/parsons/action_network/action_network.py b/parsons/action_network/action_network.py index 694e4c1693..b3e46d3963 100644 --- a/parsons/action_network/action_network.py +++ b/parsons/action_network/action_network.py @@ -101,7 +101,6 @@ def upsert_person( mobile_number=None, mobile_status="subscribed", background_processing=False, - identifiers=None, **kwargs, ): """ @@ -155,16 +154,6 @@ def upsert_person( an immediate success, with an empty JSON body, and send your request to the background queue for eventual processing. https://actionnetwork.org/docs/v2/#background-processing - identifiers: - List of strings to be used as globally unique - identifiers. Can be useful for matching contacts back - to other platforms and systems. If the identifier - provided is not globally unique in ActionNetwork, it will - simply be ignored and not added to the object. Action Network - also creates its own identifier for each new resouce. - https://actionnetwork.org/docs/v2/#resources - e.g.: ["foreign_system:1", "other_system:12345abcd"] - **kwargs: Any additional fields to store about the person. Action Network allows any custom field. @@ -229,8 +218,7 @@ def upsert_person( data["person"]["postal_addresses"] = postal_addresses if tags is not None: data["add_tags"] = tags - if identifiers: - data["person"]["identifiers"] = identifiers + data["person"]["custom_fields"] = {**kwargs} url = f"{self.api_url}/people" if background_processing: