Bitrix24 Community

Support » Forum » Marketplace » API: crm.lead.list with Custom Fields
Pages: 1
RSS
API: crm.lead.list with Custom Fields, Getting Custom Fields with the crm.lead.list REST API method
Hi, I was able to use crm.lead.list to fetch Leads, and crm.lead.get to fetch a Lead with a specific ID with all the Custom Fields, but, I would like to use crm.lead.list to fetch Leads with all the Custom Fields already. (or with the Custom Fields I specify).

Is this possible? Because otherwise I would have to use crm.lead.list, then do another API call with crm.lead.get for each result, which is less convenient and also much slower (and more painful for your server!)...

Many thanks!
Hello.

Use select key with ['*', 'UF_*']

Regards.
Brilliant, thank you Alexey!

For anyone checking this later, the working URL was as follows:

http://YOURSUBDOMAIN.bitrix24.com/rest/crm.lead.list.json?auth=ACCESSTOKEN&select[]=*&select[]=UF_*


This gets you all Lead fields including custom Lead fields, as custom fields start with "UF_" internally.  :)
Pages: 1
2,000,000+
organizations
are already using Bitrix24