Hello
I am trying to create a note on a contact from the “custom code” module in workflows.
For some reason, the code seems to be working fine and I also see on the tests that the note has been created, but I can’t find the note on the record.
When I run the same code from external enviroment, not from the custom code module, it works properly and the note is shown.
Someone knows maybe what can cause this issue?
The code:
It’s possible that the note is not visible on the contact record because it is not associated with the correct object ID. In your code, you are associating the note with the record ID provided as an input field. However, this ID may not be the correct ID for the contact record you are trying to add the note to. I suggest checking the record ID of the contact you are trying to add the note to and verifying that it matches the record ID provided in the input field. Additionally, make sure that the note is not being associated with another object, such as a deal or a ticket. You can check this by verifying that the `associationTypeId` in the code is set to 1, which is the ID for contacts. Lastly, make sure that the note is not being filtered out of the view due to your current filter settings. You can check this by adjusting your filter settings or by searching for the note using the search bar in the HubSpot UI.
Please mark it as SOLUTION ACCEPTED if you like the solution.