-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I might be using the plugin wrong but for our use case what i'm trying to do is setup a generic form that an anonymous user could submit a ticket. What i'm trying to do is gather all of the contact information and actually just add that all to the ticket body (i can do this). In the background i'm using hidden fields to map the Company / Contact to a default we use called "Catchall" that is manually reviewed.
This works, however i always get an error that the company already exists (see below).
Is there a way to create an option to not try to make a new Company/Contact and just use a default one? I'd be willing to help write this, but i want to make sure i'm not missing something that already exists.
Thanks
URL => https://api-na.myconnectwise.net/v4_6_release/apis/3.0/company/companies
data => {
"id": 0,
"identifier": "Catchall",
"name": "Catchall",
"addressLine1": "-",
"addressLine2": "-",
"city": "-",
"state": "-",
"zip": "-",
"phoneNumber": null,
"faxNumber": null,
"website": null,
"type": {
"id": "1"
},
"status": {
"id": "1"
}
}
Response[code] => 400
Response[body] => {
"code": "InvalidObject",
"message": "company object is invalid",
"errors": [
{
"code": "ObjectExists",
"message": "Company ID already in use.",
"resource": "company",
"field": "identifier"
}
]
}
Configure error notifications: [Redacted]
Install the Gravity Forms Logging Add-on to view the complete error log: https://www.gravityhelp.com/documentation/article/logging-add-on/