Hi,
I try to submit data to a HubSpot form through Power Automate. I use a HTTP Post function, using this URI https://api.hsforms.com/submissions/v3/integration/submit/:portalId/:formGuid (with my portal and form ID).
It has been working last week, now I suddenly get the following error:
Invalid input JSON on line 1, column 1: Cannot construct instance of `com.hubspot.formsubmission.core.models.PublicApiFormSubmissionRequest$Json` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value (‘fields’).
The JSON body looks like this
“fields”: [
{
“objectTypeId”: “0-1”,
“name”: “email”,
“value”: “@{triggerBody()?[‘entity’]?[‘email’]}”
},
{
“objectTypeId”: “0-1”,
“name”: “salutation”,
“value”: “@{triggerBody()?[‘entity’]?[‘salutation’]}”
},…
What can this be causing the error message?
Thank you for any hint.