from hubspot.crm.objects.goals import BatchInputSimplePublicObjectBatchInput
from hubspot.crm.objects.goals import BatchInputSimplePublicObjectBatchInputUpsert
gives the errors respectively:
ImportError: cannot import name 'BatchInputSimplePublicObjectBatchInput' from 'hubspot.crm.objects.goals'
ImportError: cannot import name 'BatchInputSimplePublicObjectBatchInputUpsert' from 'hubspot.crm.objects.goals'
Hi @GRajput
Thanks for the response, but unfortunately, it doesn’t solve the problem.
I did follow the documentation. From the error, it appears that the functions from the goals module relating to batch updates don’t exist or cannot be used.
I have also recently found this to be the same for the function from the same module for singular goal updates. See the code snippet below.
# import function for singular update to goals
from hubspot.crm.objects.goals import SimplePublicObjectInput
# error received upon execution
ImportError: cannot import name 'SimplePublicObjectInput' from 'hubspot.crm.objects.goals'
Hi @GRajput ,
I tried it and got the following error:
{
"status":"error",
"message":"The scope needed for this API call isn't available for public use. If you have questions, contact support or post in our developer forum.",
"correlationId":"xxxxxxxxxxxxxxxxxxx",
"links":{
"support":"https://help.hubspot.com/",
"forum":"https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations"
},
"category":"MISSING_SCOPES"
}
Suggests there’s a restriction on the relevant scope(s) which explains why it doesn’t work. I imagine others are experiencing this too.
Is this being worked on?