Skip to content

chore: show custom props for contacts find#53

Merged
notnmeyer merged 5 commits intomainfrom
chore/show-custom-props-for-contacts-find
Apr 16, 2026
Merged

chore: show custom props for contacts find#53
notnmeyer merged 5 commits intomainfrom
chore/show-custom-props-for-contacts-find

Conversation

@notnmeyer
Copy link
Copy Markdown
Member

@notnmeyer notnmeyer commented Apr 15, 2026

custom properties were previously not being included in responses. this fixes that. in text output mode also includes an indicator for custom properties.

➜ task -- contacts find --email test@example.come
FIELD         VALUE                      CUSTOM
id            cmo0kmaog1fm40izqhhh75luc
email         test@example.come
firstName     nate
lastName      blarg
subscribed    true
source        API
userGroup
userId        ext-123
optInStatus
mailingLists
customProp    hello                      *

➜ task -- contacts find --email test@example.come -ojson
[
  {
    "customProp": "hello",
    "email": "test@example.come",
    "firstName": "nate",
    "id": "cmo0kmaog1fm40izqhhh75luc",
    "lastName": "blarg",
    "mailingLists": {},
    "optInStatus": null,
    "source": "API",
    "subscribed": true,
    "userGroup": "",
    "userId": "ext-123"
  }
]

@notnmeyer notnmeyer self-assigned this Apr 15, 2026
@notnmeyer notnmeyer requested review from danrowden and nalanj April 15, 2026 21:55
@danrowden
Copy link
Copy Markdown
Contributor

danrowden commented Apr 16, 2026

Works great.

Not super important, but it would be nice if the JSON output matched the API output, not sure why it's being reordered by the cli. Edit: ah it's alphabetical

[
  {
    "id": "clygv49wy001ctdf0pwwgq5wl",
    "email": "dan@loops.so",
    "firstName": "Dan",
    "lastName": "R",
    "source": "API",
    "subscribed": true,
    "userGroup": "Clay users",
    "userId": "1432423",
    "thisKey": "thisValue",
    "somethingNew": "123",
    "mailingLists": {
      "clxf3aab3000w0ljl19h9h7ah": true,
      "cly2xnjqn002z0mmn68uog1wk": true
    },
    "optInStatus": null
  }
]
loops contacts find --email dan@loops.so -o json
[
  {
    "email": "dan@loops.so",
    "firstName": "Dan",
    "id": "clygv49wy001ctdf0pwwgq5wl",
    "lastName": "R",
    "mailingLists": {
      "clxf3aab3000w0ljl19h9h7ah": true,
      "cly2xnjqn002z0mmn68uog1wk": true
    },
    "optInStatus": null,
    "somethingNew": "123",
    "source": "API",
    "subscribed": true,
    "thisKey": "thisValue",
    "userGroup": "Clay users",
    "userId": "1432423"
  }
]

@notnmeyer notnmeyer merged commit 8f9995e into main Apr 16, 2026
2 checks passed
@notnmeyer notnmeyer deleted the chore/show-custom-props-for-contacts-find branch April 16, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants