Skip to content

[Components] attio #16302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pipedream-component-development opened this issue Apr 15, 2025 · 6 comments · May be fixed by #16411
Open

[Components] attio #16302

pipedream-component-development opened this issue Apr 15, 2025 · 6 comments · May be fixed by #16411
Assignees
Labels
triaged For maintainers: This issue has been triaged by a Pipedream employee

Comments

@pipedream-component-development
Copy link
Collaborator

pipedream-component-development commented Apr 15, 2025

attio

URLs

Webhook Sources

new-activity-instant

Prompt

Emit new event when an note, task or comment is created. Useful for tracking engagement in real time.

Actions

create-person

Prompt

Create a new person in Attio. Requires contact name and email. Optionally include tags, company, or custom fields.

URLs

update-person

Prompt

Update an existing person's information. Requires contact ID. Optionally update name, email, tags, or custom fields.

URLs

create-task

Prompt

Creates a new task for a given person record.

URLs

@pipedream-component-development pipedream-component-development added the triaged For maintainers: This issue has been triaged by a Pipedream employee label Apr 15, 2025
@darcher12
Copy link

Requested by the Lindy team

@jcortes jcortes self-assigned this Apr 18, 2025
@jcortes jcortes moved this from Prioritized to Doing in Component (Source and Action) Backlog Apr 18, 2025
@jcortes jcortes linked a pull request Apr 23, 2025 that will close this issue
@jcortes jcortes moved this from Doing to Ready for PR Review in Component (Source and Action) Backlog Apr 23, 2025
@luancazarine luancazarine moved this from Ready for PR Review to In Review in Component (Source and Action) Backlog Apr 28, 2025
@luancazarine luancazarine moved this from In Review to Ready for QA in Component (Source and Action) Backlog Apr 28, 2025
@vunguyenhung vunguyenhung moved this from Ready for QA to In QA in Component (Source and Action) Backlog Apr 29, 2025
@vunguyenhung vunguyenhung moved this from In QA to Ready for QA in Component (Source and Action) Backlog Apr 29, 2025
@vunguyenhung vunguyenhung moved this from Ready for QA to In QA in Component (Source and Action) Backlog Apr 29, 2025
@vunguyenhung vunguyenhung moved this from In QA to Changes Required in Component (Source and Action) Backlog Apr 29, 2025
@vunguyenhung
Copy link
Collaborator

Hello everyone, I have tested this PR and there're some test cases failed or needed improvement.

Please check the test report below for more information
https://vunguyenhung.notion.site/Components-attio-1e3bf548bb5e81d29a88c7801c148ba8

@jcortes
Copy link
Collaborator

jcortes commented Apr 30, 2025

Hi @vunguyenhung @sergio-eliot-rodriguez I'm actually having issues with create-update-record action. I tried to make it work with just curl commands but I couldn't. This is the request I built

curl -X PUT https://api.attio.com/v2/objects/people/records?matching_attribute=record_id \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"data": {"values": {"record_id": "7d97721a-057a-50a3-a7d8-5626e0120283", "name": "Test 8 upd"}}}'

And this is the response I'm gerring with error:

{
  "status_code": 400,
  "type": "invalid_request_error",
  "code": "system_edit_unauthorized",
  "message": "Attempted to write to a protected attribute with slug/ID \"record_id\"."
}

@sergio-eliot-rodriguez can you help me out and contact support so maybe they can give us some clue about this error

The docs are here just in case https://docs.attio.com/rest-api/endpoint-reference/records/assert-a-record

@jcortes jcortes moved this from Changes Required to Prioritized in Component (Source and Action) Backlog Apr 30, 2025
@jcortes
Copy link
Collaborator

jcortes commented Apr 30, 2025

hi @vunguyenhung about the issue:

Sources

Improvement needed - Deactive/Reactivate sources shows 401 error in source log

  • What do you mean by Deactive/Reactivate? maybe is Enable/Disable the source not sure here
  • I couldn't reproduce the issue maybe you saw the error because your token has expired?

@sergio-eliot-rodriguez
Copy link
Collaborator

I reached out Attio support regarding create-update-record action.

@sergio-eliot-rodriguez
Copy link
Collaborator

sergio-eliot-rodriguez commented Apr 30, 2025

@jcortes Attio's support says we should use a different attribute to record_id to attempt creating the record, and instead use an attribute that could be used as identity such as email_address, this is what they said exactly:

its likely because you are trying to Assert with a record id. Record ID is something we set internally and cannot be updated. For context, Assert a person Record endpoint allows you to create or update a record using a unique attribute (e.g., email_addresses) to find existing People records - if a match is found, the record is updated and if no match is found, a new record is created. Record ID cannot be used as a matching attribute in this context as the value wouldn't exist prior to record creation. Would it be a viable option to assert the record using email as the unique identifier?

Can you try that and let us know if that made the trick?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged For maintainers: This issue has been triaged by a Pipedream employee
Projects
Development

Successfully merging a pull request may close this issue.

5 participants