I’m attempting to add a file attached to the comment by using the Create a record comment with developers API . The file is coming from Webhook received automation. The code I created looks like this:
await tape.RecordComment.create(collected_inbox_app_record_id, {value: var_attchname, file_ids: var_tape_file_id});
I am not sure if that is the correct way to attach files to comments, but I was getting an error, so I tested just creating a comment like this:
I’m getting a weird error that I’m unsure what it is. This happens when using the “When a webhook is received” automation. If you create the comment in any other automation, the code works:
await tape.RecordComment.create(current_record_id, {value: "Comment goes here"});
Is there something specific I need to do to create a comment when the webhook is received?