Get All Companies

Hi

I have a question.

How can I get lists of all companies using web-service in PHP?

Should I use query function?

Is there any example of using query function?

Thanks

Kris

  • 0

    Hiya,

    Here's a quick example.

    First up, the client should send a logon request:

    adminpassword

    CRM returns a response in the following format, including the session ID:

    180332252549507

    You can then query all Company records using the following:

    180332252549507comp_deleted is nullcompany

    Seeing as you're looking for all Company records, you will likely see the number of results returned being limited. You might need to use the next function to return the next batch of results.

    Hope this helps,
    Rob