Skip to content
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

how to fetch all file attachments of deals #318

Open
CribberSix opened this issue Aug 27, 2024 · 0 comments
Open

how to fetch all file attachments of deals #318

CribberSix opened this issue Aug 27, 2024 · 0 comments

Comments

@CribberSix
Copy link

CribberSix commented Aug 27, 2024

How can I fetch all file attachments of a specific deal? I can retrieve companies and contacts, but I cannot retrieve attachments.

response_raw = api_client.crm.deals.basic_api.get_by_id(
    deal_id="100000000001",
    properties=["pipeline"],
    associations=["companies", "contacts", "attachments"]  # "attachments" does not work - throws an error.
)

The error: HTTP response body: {"status":"error","message":"Unable to infer object type from: attachments","correlationId":"0859d068-6dc3-40ff-9892-90a0ad09fb8c"}

For instance, I see in the Website UI that various files have been attached to a deal, but I have been unable to retrieve this list of files / their meta data via the python package (or via the API).

My goal is to retrieve the meta data of all attachments that exist in combination with their deal-id to which they are attached.

@CribberSix CribberSix changed the title how to fetch all attachments of deals how to fetch all file attachments of deals Aug 27, 2024
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

No branches or pull requests

1 participant