Hi Joshua,
First, thank you so much for your help.
Second, this is exactly the code I have ended up with, though:
1. What is the syntax to place the firstname from HubSpot within the data JSON payload?
what should be in here instead of the: <hubspot contact’s first name>
data = """
{
"firstName": "<hubspot contact's first name>",
2. How can I manipulate the output JSON code to subtract only specific text
Such as:
- In case of success: (or =200)
- status": "Success
- clientId": “abc12345def789”
- In case of an error: (!=200)
- backend:alreadyRegistered
3. Is it possible from the custom code here to already use the value and place it in a specific contact property field? for example, I have a field name “api-client-id” which I want to set its value to the clientId that came back through the API
(I can do it using the copy value within workflow but prefer from the code directly if possible)