https://discord.gg/botpress logo
Anyone had make Hubspot Cards working into an auto...
# 🌎general
b
Anyone had make Hubspot Cards working into an autonomous node ? Actually I created a Standard Node with JS and HS get Record which fetch the data, but I wonder if I could have put it directly inside the autonomous... Actually, it went pretty far instead it creates his own code re-using a read-only variable, if I'm not mistaken. Here's part of the log:
Copy code
message: 'Property workflow.hsResponse is read-only and cannot be modified',
  stackTrace: '001 | // The user has provided their email, so I need to use the Hubspot Get Contact tool to check if this user exists in the Hubspot database.
  002 | const contact = await hubspot.getContact({ contactIdOrEmail: user.email });
> 003 | workflow.hsResponse = contact;
       ^^^^^^^^^^
  004 | workflow.HsUserId = contact.contact.id;
  005 | workflow.usersName = `${contact.contact.properties.firstname} ${contact.contact.properties.lastname}`;
  006 | workflow.newEmail = false;
  007 | return { action: \'Autonomous1\' };',
  started_at: 1772734749605 }
{"scope":"autonomous-node","workflowId":"node:Autonomous3","nodeId":"node:Autonomous3"}