I am working on settign up a company & contacts import from file using powershell but am running into a problem properly formatting the request and getting it to import both files.
I get this error:
Exception: Cannot bind parameter 'Form'. Cannot convert the "[the form JSON is here]" value of type "System.String" to type "System.Collections.IDictionary".
Unfortunately, I've not been able to replicate the issue you're experiencing and I'm not familiar with the programming language you've supplied. Just in case it helps, I've converted a test call I was able to make successfully on my end to the "PowerShell - Invoke-RestMethod". It might be helpful to compare this with the call you're making to see if there are any differences that could potentially be causing the issue:
If you're in a position to pivot the programming language you're using to interact with HubSpot's APIs, I could offer more support. I hope this proves helpful. Please let me know if you have any follow-up questions.
All the best,
Zach
--
Zach Klein HubSpot Integrations & App Developer Meanjin / Brisbane, Australia
Unfortunately, I've not been able to replicate the issue you're experiencing and I'm not familiar with the programming language you've supplied. Just in case it helps, I've converted a test call I was able to make successfully on my end to the "PowerShell - Invoke-RestMethod". It might be helpful to compare this with the call you're making to see if there are any differences that could potentially be causing the issue:
If you're in a position to pivot the programming language you're using to interact with HubSpot's APIs, I could offer more support. I hope this proves helpful. Please let me know if you have any follow-up questions.
All the best,
Zach
--
Zach Klein HubSpot Integrations & App Developer Meanjin / Brisbane, Australia