I'm trying to make an external application that requests data from Bitrix24. If you take a look at the documentation, there's not much about the parameters used in the endpoints
https://training.bitrix24.com/rest_help/oauth/index.php.
Currently, I'm trying to get a list of all the data in the Deal table (crm.deal.list
). That data is divided in two parts, the native fields (fields that bitrix has by default) and the user/custom fields (fields that a user creates) for some reason, when I use the method crm.deal.list crm.deal.list
(bitrix24.com), it only returns the native fields. From what I saw online, I need to add certain parameters to the endpoint to actually get that custom data.
Now I have 2 problems: the parameters don't work, for example, if I need to select certain fields in the data that's returned, I would use something like this
https://{domain}/rest/{token}/crm.deal.list?select=["ID","TITLE"].
For some reason it doesn't work at all.
I don't know what is the parameter that I should use to get the custom fields. Sorry if I didn't explain some details, it's my first time here
var data = new List\<string\>()
{
"*",
"UF\_*"
};
var para = new Dictionary\<string, object\>()
{
{ "SELECT", data }
};
var stringData = JsonSerializer.Serialize(para);
var URL = $@"https://{your_bitrix_domain}/rest/{access_token}/crm.deal.list.json/{stringData}";
using var client = new HttpClient();
try
{
var response = await client.GetStringAsync(URL);
return Ok(response);
}
catch(Exception ex)
{
Console.WriteLine(ex.ToString());
return NotFound("fuck");
}
This is the code that I'm using, the endpoint doesn't work, because the SELECT
parameter doesn't get anything