Hi I’m able to create the tickets using the default property but i want to create the custom pipeline property there name is xyz and all the tickets will create under this can it is possible.
Hi @saurabh442,
If you’ve created a custom ticket pipeline with the CRM Pipelines API, you can use the pipelineId value for hs_pipeline when creating a ticket.
For example:
{
"name": "hs_pipeline",
"value": "custom_pipeline_id"
}
Hi @Isaac_Takushi
but when I was getting error i’m already try this:-
$str_post = ‘[
{
“name”: “source_type”,
“value”: “CHAT”
},
{
“name”: “created_by”,
“value”: “33333”
},
{
“name”: “subject”,
“value”: “testing subject”
},
{
“name”: “hs_pipeline”,
“value”: “2”
},
{
“name”: “hs_pipeline_stage”,
“value”: “1”
},
{
“name”: “content”,
“value”: “Here is the details of the ticket.”
}
]’;
Error : 400 {“status”:“error”,“message”:“Property values were not valid”,“correlationId”:“chdjdj6dhgd”,“validationResults”:[{“isValid”:false,“message”:“Pipeline 2 is not valid”,“error”:“INVALID_OPTION”,“name”:“hs_pipeline_stage”}],“requestId”:“bc66161cf9557f”}
and when I’m put 0 it goes support default
{
“name”: “hs_pipeline”,
“value”: “0”
}
Still waiting for reply please Reply me with the solution.
Hi @saurabh442,
The INVALID_OPTION error seems to indicate that no ticket pipeline with the pipelineId "2" exists for your account.
Please send me the JSON response you receive from https://api.hubapi.com/crm-pipelines/v1/pipelines/tickets?hapikey={your_hapikey} per this method.
Hello @Isaac_Takushi, is there Any API documents to get the custom ticket pipeline ID.
Hi @saurabh442,
Yes, you can check all of your existing pipelines with this endpoint.
As I described in my last message, you will use the URL https://api.hubapi.com/crm-pipelines/v1/pipelines/tickets?hapikey={your_hapikey}. (Make sure to replace {your_hapikey} with your API key.)
If you copy the JSON response below, I can help you interpret it.