Comments (5)
i can not create ticket too.
passed array:
$property = array();
$property[0]['property'] = "hs_pipeline";
$property[0]['value'] = "0";
$property[1]['property'] = "hs_pipeline_stage";
$property[1]['value'] = "1";
$property[2]['property'] = "hubspot_owner_id";
$property[2]['value'] = $owner[$ext];
$property[3]['property'] = "subject";
$property[3]['value'] = $number;
$property[4]['property'] = "source_type";
$property[4]['value'] = "PHONE";
Response: {"status":"error","message":"Cannot create object with type: TICKET. The following required properties were missing: [hs (truncated...)
i have no idea, why error occured,
from hubspot-php.
@BatunaAz, it says it in your response. You're missing required params.
from hubspot-php.
if i use node API it works for passed params. Only PHP packages return this error.
from hubspot-php.
Hi @BatunaAz
for me it works correctly with your properties
$hubspot = Factory::createWithOAuth2Token('*');
$response = $hubspot->tickets()->create([
[
'name' => 'subject',
'value' => 'Ticket api v2',
],
[
'name' => 'source_type',
'value' => 'PHONE',
],
[
'name' => 'hubspot_owner_id',
'value' => '*',
],
[
'name' => 'hs_pipeline',
'value' => '0',
],
[
'name' => 'hs_pipeline_stage',
'value' => '1',
],
]);
from hubspot-php.
Hi @nitinupify
you can create an custom property using CRM Object Properties API
$hubspot = Factory::createWithOAuth2Token('*');
$response = $hubspot->objectProperties('tickets')->create($property)
you can create an ticket using Tickets API
$hubspot = Factory::createWithOAuth2Token('*');
$response = $hubspot->tickets()->create($ticket)
from hubspot-php.
Related Issues (20)
- Is there a way to get all deals that are marked as 'closed won' that have been last modified within the past 5 days? HOT 1
- Creating Notes with Engagements results in "metadata cannot be null" HOT 1
- Guzzle error HOT 1
- Support quotes API HOT 1
- Sequential page requests causing slow response on get crm()->companies()->getAll() HOT 2
- HubSpot Contacts Search API Broken? HOT 1
- This Repo Is NOT For API Version 3 HOT 1
- new release? HOT 1
- PHP 8.1 deprecations HOT 3
- Support for GDPR DELETE Endpoint HOT 2
- Form submission fails with '400 Bad Request' HOT 2
- Association error. HOT 1
- Error creating or updating contact using old API HOT 1
- Analytics::getType uses wrong parameter names for start and end Dates HOT 1
- New Webhook Signatures HOT 2
- Hubspot Private app token ? HOT 1
- Can you please add note engagement end point ? HOT 1
- Symfony\Component\ErrorHandler\Error\FatalError with latest http-message PSR version HOT 3
- Support psr/http-message 2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubspot-php.