Bragg
1
Hi, I’m trying to create a workflow extension and I keep getting a 500 error. Here is the request:
url = 'https://api.hubapi.com/automationextensions/v1/definitions?hapikey=<<redacted>>&applicationId=<<redacted>>'
headers = {'User-Agent': 'python-requests/2.25.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '735', 'Content-Type': 'application/json'}
data = {
"integrationAppId": HUBSPOT_APP_ID,
"extensionName": "Create Hub User (dev) TEST",
"webhookUrl": "<<redacted>>/#/signup",
"fieldMetadata": [
{
"label": "Email Address",
"key": "pemail",
"fieldType": "TEXT",
"values": [
{
"type": "OBJECT_PROPERTY"
}
]
},
{
"label": "First Name",
"key": "firstname",
"fieldType": "TEXT",
"values": [
{
"type": "OBJECT_PROPERTY"
}
]
},
{
"label": "Last Name",
"key": "lastname",
"fieldType": "TEXT",
"values": [
{
"type": "OBJECT_PROPERTY"
}
]
},
{
"label": "Patient ID",
"key": "ppatientId",
"fieldType": "TEXT",
"values": [
{
"type": "OBJECT_PROPERTY"
}
]
},
{
"label": "Chosen Site",
"key": "psitecode",
"fieldType": "TEXT",
"values": [
{
"type": "OBJECT_PROPERTY"
}
]
}
]
}
Bragg
2
OK I have managed to resolve the issue in my previous post and received a 201 response:
{
"integrationAppId":237506,
"extensionName":"Create Hub User (dev) TEST",
"latestVersion":0,
"webhookUrl":"https://<<redacted>>/Prod/api/users/signup",
"dataUrl":"None",
"fieldMetadata":[
{
"key":"pemail",
"label":"Email Address",
"values":[
{
"type":"OBJECT_PROPERTY"
}
],
"fieldType":"TEXT",
"required":true
},
{
"key":"firstname",
"label":"First Name",
"values":[
{
"type":"OBJECT_PROPERTY"
}
],
"fieldType":"TEXT",
"required":true
},
{
"key":"lastname",
"label":"Last Name",
"values":[
{
"type":"OBJECT_PROPERTY"
}
],
"fieldType":"TEXT",
"required":true
},
{
"key":"ppatientId",
"label":"Patient ID",
"values":[
{
"type":"OBJECT_PROPERTY"
}
],
"fieldType":"TEXT",
"required":true
},
{
"key":"psitecode",
"label":"Chosen Site",
"values":[
{
"type":"OBJECT_PROPERTY"
}
],
"fieldType":"TEXT",
"required":true
}
],
"lambdas":{
},
"id":2417,
"version":0
}
My next question is, where do I find the extension in the workflows front end?
Bragg
3
I’ve managed to solve this issue now so no further action is needed.
I’m a bit disappointed with the lack of response to this thread, considering the forum is the only way to get dev support!
Hey @Bragg !
I apologize for missing this! Won’t let it happen again.
What was your solution?
Hey Bragg, have you tried the HubSpot developers slack channel? Sometimes it’s easier to reply there.
ABania
6
@Bragg , Can you share the solution? I am facing same issue.