Read all companies

Hello,
I need help reading the list of companies.
In return for reading the has_more flag is always false!
and the CompagnyId field is always null!
I am developing in C # here is my code.

Looking forward to a response Thank you

Definition

public class Cie_All
{
public Les_Properties properties { get; set; }
public string portalId { get; set; }
public string compagnyId { get; set; }
public bool isDeleted { get; set; }
}

public class Les_Properties
{
public le_Nom name { get; set; }
}

public class le_Nom
{
public string value { get; set; }
}

program

bool Encore = false;
string offset = “”;
do
{
//***** Read All Cie *****
GET_All_Cie Toute_Les_Cies = new GET_All_Cie();
//***** Build string service HubSpot
LaChaine = string.Format(“https://api.hubapi.com/companies/v2/companies/paged?hapikey={0}&properties=name&properties=compagnyId&properties=has_more&limit=20{1}”, Extension_HubSpot.Identification_HubSpot, offset);

client = new RestClient(LaChaine);
request = new RestRequest(Method.GET);
request.AddHeader(“accept”, “application/json”);
response = client.Execute(request);

Toute_Les_Cies = Traitements_Communs.JsonConvert.DeserializeObject<GET_All_Cie>(response.Content);

Encore = Toute_Les_Cies.has_more; // Always false ?

// creates offset parameter for next request
offset = string.Format(“&offset={0}”, Toute_Les_Cies.offset);

i = 0;

//***** Lecture des Entreprises HubSpot (Clients EBP)
foreach (var Cie in Toute_Les_Cies.companies)
{
if (Cie.properties.name == null) continue;
ZoneS = Cie.portalId;
ZoneS = Cie.compagnyId;
ZoneB = Cie.isDeleted;
Code_EBP = Cie.compagnyId; // Always null

//***** le nomde la cie
ZoneS = Cie.properties.name.value;

i++;
}
} while (Encore);

Bonjour @JeanAMOROS !

I’d like to tag some experts on this @LOIC_BURDET_IDE @quentin_lamamy do you have any thoughts for @JeanAMOROS on this?

Thank you!

Bonne journée,

Tiphaine