-
Notifications
You must be signed in to change notification settings - Fork 93
API - List Contacts Companies - Search Parameter #158
Comments
Could you please provide some examples of what's wrong and/or what your suggestions are? I don't understand it from your request. |
Currently when we want to push from CRM a new contact to mautic (not existing into Mautic) and we want to send at the same time accounts' details. Currently we must load the full Accounts list to retrieve thousands of answers to try to match our account name as we can't refine our API call with a search string like Contacts list. Does this make sense for you ? |
Why don't you use
replace |
https://developer.mautic.org/#get-company
There 's no filters available in the documentation. TBH we used the search filter as in the Contacts list filter (with extended criterias) but it didn't work. As documentation said that the list is not filterable, we assumed that we cannot do any search.. we were (partially) wrong. Thanks for the tip ! We will use that. Still we can keep that FR to provide:
|
Will you have time to update the docs? https://github.com/mautic/developer-documentation |
@captivea-qch Can you help on this one ? |
@captivea-ylb could you please carry that as requested by @YannickBiet ? |
@escopecz it is possible to search for contacts according to a company (we have the company ID). and we are looking for the contact list ? |
Should be possible to use the company search command. But it uses company name instead of ID. Is that a problem? |
@escopecz the problem is that the name of the company is not unique. the company ID will be more precise. is it possible to filter contacts by company ID? or the only way is to use the company name? |
Contacts to companies relationship is stored in the |
@escopecz with this method of accessing the relations table and seeing the IDs of the contacts of such a Company, will be slower to access the content of the properties of the contacts. (if in a company, I have 1000 contacts, I will then make 1000 API requests to have all the contacts with get(ID)). |
@captivea-ylb @escopecz @npracht Can you help on this one ? |
I don't know these nuances from the top of my head. Please do some tests. |
@escopecz How to get Custom Data Type (List of Country, List of region ...) of Fields WITH the API Library ? |
I'm not aware of a API endpoint for those. But you can access them on GitHub directly. They are in JSON format. For example countries are here: |
@escopecz I used your proposal to find the contacts of a Company with: company: "Company name" |
@escopecz Please I used your proposal to find the contacts of a Company with: company: "Company name" |
@escopecz it is possible to change the Label of the standard Field in Mautic from API ? // Create new a field of ID 1 is not found? $result = $fieldApi->edit($id, $data, $createIfNotFound); I have a 500 type error. "message":"Looks like I encountered an error (error #500) |
Should be possible. Check the logs what the error is. |
@escopecz I didn't write the sql request. but I wrote the PHP code for API access. but it translates with the request: |
Alright. It's a bug then. The is_required property should be set to false if not provided. However there is a way around it if you provide the value in your API request. Try this: $fieldApi = $api->newApi("contactFields", $auth, $apiUrl);
$id = 1;
$data = [
'label' => 'API test field',
'type' => 'text',
'isRequired' => false,
];
// Create new a field of ID 1 is not found?
$createIfNotFound = true;
$result = $fieldApi->edit($id, $data, $createIfNotFound); |
@escopecz when i set 'isRequired' false, it jumped to an error -> 'is_visible' cannot be null. |
@escopecz |
Change the underscores with camel case as I did with the isRequired. E.g. |
@escopecz |
@Ziedpad let's not mix completely different problem into this. Please create 1 GitHub issue for each problem you face. But in your case it's easier to find the answer when you google the error message. This is the first result: https://stackoverflow.com/questions/39204990/php-startup-unable-to-load-dynamic-library-usr-lib-php-20151012-php-mysqli-dll |
Same problem here. It is very annoying to search companies. There are no filters available, and if the company name has accents, the search doesn't work at all. Example, if I have a company named: John Farmacêutica, and I try to search for it, mautic will never return a value. I've tried to parse it to utf8 and encode the uri component and nothing.... |
Description:
Currently the REST API for companies listing is not filterable !
https://developer.mautic.org/#list-contact-companies
It asks ages to get a list from Mautic that owns hundred of thousands companies !
As it is already implemented in Contacts, it would be great to have the same possibilities with Companies to have the same level of functionalities whatever we want to deal / sync contacts or companies
If a bug:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: