Hi,
I want to syncronize an added note including attachments to a different tool. For this I would like to use a custom code action.
But it is possible to grap the latest added note (and the related attachment) in the custom code to sent it to the other tool?
Where you’ll replace {{OBJECT_TYPE}} with the relevant object type (e.g. company) and {{RECORD_ID}} with the relevant record ID. You’ll also want to update the “properties” array according to your requirements. This should return no more than 1 result (either nothing or the most recently created Note that is associated with the given record).
Next, take the note attachment ID(s) from the response body JSON
(results[0].properties.
hs_attachment_ids)
and get a “signed URL” per file to access it/them. More info can be found in the Files API documentation.
Perfect, Thanks
Where can I find a documentation which properties I can use?
I struggle everytime because I do not find the names like hs_note_body for example.
I often use the Get All Properties API endpoint for this. One of the advantages of using the API for this is that you gain visibility on hidden properties. Another is you get access to properties of all object-types. Here’s a request template you might consider using:
The response should include all active (if archived parameter set to FALSE) or archived (if archived parameter set to TRUE) properties for the specified object-type. You can search the entire response for keywords of interest. You might also consider using a tool like JSONata to find properties of interest. For example, copy the entire response body JSON into the JSONata source input (left sidebar) and enter “results.label” into the query input (upper right panel). This should give you an easy to read array of all property labels within the response (lower right panel).
I hope this proves useful. Please let me know if you have any follow-up questions.