Triggers when there is a new or updated contact

Input

PropertyTypeRequiredDescription

Sample Output

{
  "resourceName": "people/c4278485694217203807",
  "etag": "%EiMBAgMFBgcICQoLDA0ODxATFBUWGSEiIyQlJicuNDU3PT4/QBoEAQIFByIMZFVwNlJPNEVKUzg9",
  "metadata": {
    "sources": [
      {
        "type": "CONTACT",
        "id": "3b603c120c68305f",
        "etag": "#dUp6RO4EJS8=",
        "updateTime": "2023-01-30T14:35:18.142565Z"
      }
    ],
    "objectType": "PERSON"
  },
  "names": [
    {
      "metadata": {
        "primary": true,
        "source": {
          "type": "CONTACT",
          "id": "3b603c120c68305f"
        }
      },
      "displayName": "Shahed Mashni",
      "familyName": "Mashni",
      "givenName": "Shahed",
      "displayNameLastFirst": "Mashni, Shahed",
      "unstructuredName": "Shahed Mashni"
    }
  ],
  "photos": [
    {
      "metadata": {
        "primary": true,
        "source": {
          "type": "CONTACT",
          "id": "3b603c120c68305f"
        }
      },
      "url": "https://lh3.googleusercontent.com/cm/AAkddurmZojs4vCcxrpkfSxH9tnqcH-hI82ESDnwv6eq86nZeLStcjYEIe_TCx8r8g5Y=s100",
      "default": true
    }
  ],
  "memberships": [
    {
      "metadata": {
        "source": {
          "type": "CONTACT",
          "id": "3b603c120c68305f"
        }
      },
      "contactGroupMembership": {
        "contactGroupId": "myContacts",
        "contactGroupResourceName": "contactGroups/myContacts"
      }
    }
  ]
}