Chilkat Online Tools

Node.js / Creatio API / $filter parameter (eq operator)

Back to Collection Items

var os = require('os');
if (os.platform() == 'win32') {  
    if (os.arch() == 'ia32') {
        var chilkat = require('@chilkat/ck-node21-win-ia32');
    } else {
        var chilkat = require('@chilkat/ck-node21-win64'); 
    }
} else if (os.platform() == 'linux') {
    if (os.arch() == 'arm') {
        var chilkat = require('@chilkat/ck-node21-arm');
    } else if (os.arch() == 'x86') {
        var chilkat = require('@chilkat/ck-node21-linux32');
    } else {
        var chilkat = require('@chilkat/ck-node21-linux64');
    }
} else if (os.platform() == 'darwin') {
    if (os.arch() == 'arm64') {
        var chilkat = require('@chilkat/ck-node21-mac-m1');
    } else {
        var chilkat = require('@chilkat/ck-node21-macosx');
    }
}


function chilkatExample() {

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    var http = new chilkat.Http();
    var success;

    var queryParams = new chilkat.JsonObject();
    queryParams.UpdateString("$filter","Field2 eq 'Field2Value'");

    http.SetRequestHeader("ForceUseSession","true");
    http.SetRequestHeader("BPMCSRF","{{BPMCSRF}}");

    // resp: HttpResponse
    var resp = http.QuickRequestParams("GET","https://myserver.com/0/ServiceModel/EntityDataService.svc/Collection1Collection",queryParams);
    if (http.LastMethodSuccess == false) {
        console.log(http.LastErrorText);
        return;
    }

    var sbResponseBody = new chilkat.StringBuilder();
    resp.GetBodySb(sbResponseBody);

    var xmlResponse = new chilkat.Xml();
    xmlResponse.LoadSb(sbResponseBody,true);
    console.log(xmlResponse.GetXml());

    // Sample XML response:
    // (Sample code for parsing the XML response is shown below)

    // <?xml version="1.0" encoding="utf-8"?>
    // <feed xml:base="https://myserver.com/0/ServiceModel/EntityDataService.svc/" xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
    //     <id>https://myserver.com/0/ServiceModel/EntityDataService.svc/EmployeeCollection</id>
    //     <title type="text">EmployeeCollection</title>
    //     <updated>2020-04-09T11:22:42Z</updated>
    //     <link rel="self" title="EmployeeCollection" href="EmployeeCollection"/>
    //     <entry>
    //         <id>https://myserver.com/0/ServiceModel/EntityDataService.svc/EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')</id>
    //         <category term="Terrasoft.Configuration.Employee" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
    //         <link rel="edit" title="Employee" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/CreatedBy" type="application/atom+xml;type=entry" title="CreatedBy" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/CreatedBy"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ModifiedBy" type="application/atom+xml;type=entry" title="ModifiedBy" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/ModifiedBy"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Contact" type="application/atom+xml;type=entry" title="Contact" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/Contact"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/OrgStructureUnitCollectionByHead" type="application/atom+xml;type=feed" title="OrgStructureUnitCollectionByHead" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/OrgStructureUnitCollectionByHead"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/OrgStructureUnit" type="application/atom+xml;type=entry" title="OrgStructureUnit" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/OrgStructureUnit"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Job" type="application/atom+xml;type=entry" title="Job" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/Job"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Owner" type="application/atom+xml;type=entry" title="Owner" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/Owner"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ReasonForDismissal" type="application/atom+xml;type=entry" title="ReasonForDismissal" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/ReasonForDismissal"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Account" type="application/atom+xml;type=entry" title="Account" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/Account"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Manager" type="application/atom+xml;type=entry" title="Manager" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/Manager"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeCollectionByManager" type="application/atom+xml;type=feed" title="EmployeeCollectionByManager" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/EmployeeCollectionByManager"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeCareerCollectionByEmployee" type="application/atom+xml;type=feed" title="EmployeeCareerCollectionByEmployee" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/EmployeeCareerCollectionByEmployee"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeFileCollectionByEmployee" type="application/atom+xml;type=feed" title="EmployeeFileCollectionByEmployee" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/EmployeeFileCollectionByEmployee"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeInFolderCollectionByEmployee" type="application/atom+xml;type=feed" title="EmployeeInFolderCollectionByEmployee" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/EmployeeInFolderCollectionByEmployee"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeInTagCollectionByEntity" type="application/atom+xml;type=feed" title="EmployeeInTagCollectionByEntity" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/EmployeeInTagCollectionByEntity"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/SalaryCollectionByEmployee" type="application/atom+xml;type=feed" title="SalaryCollectionByEmployee" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/SalaryCollectionByEmployee"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/VwEmployeesHierarchyCollectionByEmployee" type="application/atom+xml;type=feed" title="VwEmployeesHierarchyCollectionByEmployee" href="EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/VwEmployeesHierarchyCollectionByEmployee"/>
    //         <title/>
    //         <updated>2020-04-09T11:22:42Z</updated>
    //         <author>
    //             <name/>
    //         </author>
    //         <content type="application/xml">
    //             <m:properties>
    //                 <d:Id m:type="Edm.Guid">c31c7862-fe33-4a13-9bbc-0943fa08fd02</d:Id>
    //                 <d:Name>William Walker</d:Name>
    //                 <d:CreatedOn m:type="Edm.DateTime">2017-03-30T14:50:04Z</d:CreatedOn>
    //                 <d:CreatedById m:type="Edm.Guid">76929f8c-7e15-4c64-bdb0-adc62d383727</d:CreatedById>
    //                 <d:ModifiedOn m:type="Edm.DateTime">2020-02-14T06:30:46.234Z</d:ModifiedOn>
    //                 <d:ModifiedById m:type="Edm.Guid">410006e1-ca4e-4502-a9ec-e54d922d2c00</d:ModifiedById>
    //                 <d:ProcessListeners m:type="Edm.Int32">0</d:ProcessListeners>
    //                 <d:ContactId m:type="Edm.Guid">227aab3b-7c0c-4181-abf9-81585563ab23</d:ContactId>
    //                 <d:OrgStructureUnitId m:type="Edm.Guid">d436a9ce-9690-4415-9e03-e8061d7cabb5</d:OrgStructureUnitId>
    //                 <d:Notes/>
    //                 <d:JobId m:type="Edm.Guid">11d68189-ced6-df11-9b2a-001d60e938c6</d:JobId>
    //                 <d:FullJobTitle>Developer</d:FullJobTitle>
    //                 <d:OwnerId m:type="Edm.Guid">76929f8c-7e15-4c64-bdb0-adc62d383727</d:OwnerId>
    //                 <d:CareerStartDate m:type="Edm.DateTime">2019-09-08T00:00:00</d:CareerStartDate>
    //                 <d:CareerDueDate m:type="Edm.DateTime">0001-01-01T00:00:00</d:CareerDueDate>
    //                 <d:ProbationDueDate m:type="Edm.DateTime">2020-01-09T00:00:00</d:ProbationDueDate>
    //                 <d:ReasonForDismissalId m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:ReasonForDismissalId>
    //                 <d:AccountId m:type="Edm.Guid">a0bf3e92-f36b-1410-0499-00155d043204</d:AccountId>
    //                 <d:ManagerId m:type="Edm.Guid">3e5bd47e-1ebd-41db-a9a6-a3560dcee3cb</d:ManagerId>
    //             </m:properties>
    //         </content>
    //     </entry>
    //     <entry>
    //         <id>https://myserver.com/0/ServiceModel/EntityDataService.svc/EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')</id>
    //         <category term="Terrasoft.Configuration.Employee" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
    //         <link rel="edit" title="Employee" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/CreatedBy" type="application/atom+xml;type=entry" title="CreatedBy" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/CreatedBy"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ModifiedBy" type="application/atom+xml;type=entry" title="ModifiedBy" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/ModifiedBy"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Contact" type="application/atom+xml;type=entry" title="Contact" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/Contact"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/OrgStructureUnitCollectionByHead" type="application/atom+xml;type=feed" title="OrgStructureUnitCollectionByHead" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/OrgStructureUnitCollectionByHead"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/OrgStructureUnit" type="application/atom+xml;type=entry" title="OrgStructureUnit" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/OrgStructureUnit"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Job" type="application/atom+xml;type=entry" title="Job" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/Job"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Owner" type="application/atom+xml;type=entry" title="Owner" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/Owner"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ReasonForDismissal" type="application/atom+xml;type=entry" title="ReasonForDismissal" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/ReasonForDismissal"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Account" type="application/atom+xml;type=entry" title="Account" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/Account"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Manager" type="application/atom+xml;type=entry" title="Manager" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/Manager"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeCollectionByManager" type="application/atom+xml;type=feed" title="EmployeeCollectionByManager" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/EmployeeCollectionByManager"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeCareerCollectionByEmployee" type="application/atom+xml;type=feed" title="EmployeeCareerCollectionByEmployee" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/EmployeeCareerCollectionByEmployee"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeFileCollectionByEmployee" type="application/atom+xml;type=feed" title="EmployeeFileCollectionByEmployee" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/EmployeeFileCollectionByEmployee"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeInFolderCollectionByEmployee" type="application/atom+xml;type=feed" title="EmployeeInFolderCollectionByEmployee" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/EmployeeInFolderCollectionByEmployee"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeInTagCollectionByEntity" type="application/atom+xml;type=feed" title="EmployeeInTagCollectionByEntity" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/EmployeeInTagCollectionByEntity"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/SalaryCollectionByEmployee" type="application/atom+xml;type=feed" title="SalaryCollectionByEmployee" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/SalaryCollectionByEmployee"/>
    //         <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/VwEmployeesHierarchyCollectionByEmployee" type="application/atom+xml;type=feed" title="VwEmployeesHierarchyCollectionByEmployee" href="EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/VwEmployeesHierarchyCollectionByEmployee"/>
    //         <title/>
    //         <updated>2020-04-09T11:22:42Z</updated>
    //         <author>
    //             <name/>
    //         </author>
    //         <content type="application/xml">
    //             <m:properties>
    //                 <d:Id m:type="Edm.Guid">ddb34ecb-f009-484a-ad2b-0a49a475bdb2</d:Id>
    //                 <d:Name>Timothy Sawyer</d:Name>
    //                 <d:CreatedOn m:type="Edm.DateTime">2017-03-30T14:54:20Z</d:CreatedOn>
    //                 <d:CreatedById m:type="Edm.Guid">76929f8c-7e15-4c64-bdb0-adc62d383727</d:CreatedById>
    //                 <d:ModifiedOn m:type="Edm.DateTime">2017-03-31T07:49:14Z</d:ModifiedOn>
    //                 <d:ModifiedById m:type="Edm.Guid">76929f8c-7e15-4c64-bdb0-adc62d383727</d:ModifiedById>
    //                 <d:ProcessListeners m:type="Edm.Int32">0</d:ProcessListeners>
    //                 <d:ContactId m:type="Edm.Guid">3822fb63-0e78-416f-a06b-3d18bd5e0448</d:ContactId>
    //                 <d:OrgStructureUnitId m:type="Edm.Guid">d436a9ce-9690-4415-9e03-e8061d7cabb5</d:OrgStructureUnitId>
    //                 <d:Notes/>
    //                 <d:JobId m:type="Edm.Guid">11d68189-ced6-df11-9b2a-001d60e938c6</d:JobId>
    //                 <d:FullJobTitle>Developer</d:FullJobTitle>
    //                 <d:OwnerId m:type="Edm.Guid">76929f8c-7e15-4c64-bdb0-adc62d383727</d:OwnerId>
    //                 <d:CareerStartDate m:type="Edm.DateTime">2016-12-04T00:00:00</d:CareerStartDate>
    //                 <d:CareerDueDate m:type="Edm.DateTime">2019-10-08T00:00:00</d:CareerDueDate>
    //                 <d:ProbationDueDate m:type="Edm.DateTime">0001-01-01T00:00:00</d:ProbationDueDate>
    //                 <d:ReasonForDismissalId m:type="Edm.Guid">f83b228a-f36b-1410-b783-00155d04320c</d:ReasonForDismissalId>
    //                 <d:AccountId m:type="Edm.Guid">e308b781-3c5b-4ecb-89ef-5c1ed4da488e</d:AccountId>
    //                 <d:ManagerId m:type="Edm.Guid">3e5bd47e-1ebd-41db-a9a6-a3560dcee3cb</d:ManagerId>
    //             </m:properties>
    //         </content>
    //     </entry>
    // </feed>

    // Sample code for parsing the XML response...
    // Use this online tool to generate parsing code from sample XML: Generate XML Parsing Code

    var category_term;
    var category_scheme;
    var j;
    var count_j;
    var link_type;
    var content_type;
    var d_Id_m_type;
    var d_Id;
    var d_Name;
    var d_CreatedOn_m_type;
    var d_CreatedOn;
    var d_CreatedById_m_type;
    var d_CreatedById;
    var d_ModifiedOn_m_type;
    var d_ModifiedOn;
    var d_ModifiedById_m_type;
    var d_ModifiedById;
    var d_ProcessListeners_m_type;
    var d_ProcessListeners;
    var d_ContactId_m_type;
    var d_ContactId;
    var d_OrgStructureUnitId_m_type;
    var d_OrgStructureUnitId;
    var d_JobId_m_type;
    var d_JobId;
    var d_FullJobTitle;
    var d_OwnerId_m_type;
    var d_OwnerId;
    var d_CareerStartDate_m_type;
    var d_CareerStartDate;
    var d_CareerDueDate_m_type;
    var d_CareerDueDate;
    var d_ProbationDueDate_m_type;
    var d_ProbationDueDate;
    var d_ReasonForDismissalId_m_type;
    var d_ReasonForDismissalId;
    var d_AccountId_m_type;
    var d_AccountId;
    var d_ManagerId_m_type;
    var d_ManagerId;

    var feed_xml_base = xmlResponse.GetAttrValue("xml:base");
    var feed_xmlns = xmlResponse.GetAttrValue("xmlns");
    var feed_xmlns_d = xmlResponse.GetAttrValue("xmlns:d");
    var feed_xmlns_m = xmlResponse.GetAttrValue("xmlns:m");
    var id = xmlResponse.GetChildContent("id");
    var title_type = xmlResponse.ChilkatPath("title|(type)");
    var title = xmlResponse.GetChildContent("title");
    var updated = xmlResponse.GetChildContent("updated");
    var link_rel = xmlResponse.ChilkatPath("link|(rel)");
    var link_title = xmlResponse.ChilkatPath("link|(title)");
    var link_href = xmlResponse.ChilkatPath("link|(href)");
    var i = 0;
    var count_i = xmlResponse.NumChildrenHavingTag("entry");
    while (i < count_i) {
        xmlResponse.I = i;
        id = xmlResponse.GetChildContent("entry[i]|id");
        category_term = xmlResponse.ChilkatPath("entry[i]|category|(term)");
        category_scheme = xmlResponse.ChilkatPath("entry[i]|category|(scheme)");
        j = 0;
        count_j = xmlResponse.NumChildrenHavingTag("entry[i]|link");
        while (j < count_j) {
            xmlResponse.J = j;
            link_rel = xmlResponse.ChilkatPath("entry[i]|link[j]|(rel)");
            link_title = xmlResponse.ChilkatPath("entry[i]|link[j]|(title)");
            link_href = xmlResponse.ChilkatPath("entry[i]|link[j]|(href)");
            link_type = xmlResponse.ChilkatPath("entry[i]|link[j]|(type)");
            j = j+1;
        }

        updated = xmlResponse.GetChildContent("entry[i]|updated");
        content_type = xmlResponse.ChilkatPath("entry[i]|content|(type)");
        d_Id_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:Id|(m:type)");
        d_Id = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:Id");
        d_Name = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:Name");
        d_CreatedOn_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:CreatedOn|(m:type)");
        d_CreatedOn = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:CreatedOn");
        d_CreatedById_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:CreatedById|(m:type)");
        d_CreatedById = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:CreatedById");
        d_ModifiedOn_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:ModifiedOn|(m:type)");
        d_ModifiedOn = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:ModifiedOn");
        d_ModifiedById_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:ModifiedById|(m:type)");
        d_ModifiedById = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:ModifiedById");
        d_ProcessListeners_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:ProcessListeners|(m:type)");
        d_ProcessListeners = xmlResponse.GetChildIntValue("entry[i]|content|m:properties|d:ProcessListeners");
        d_ContactId_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:ContactId|(m:type)");
        d_ContactId = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:ContactId");
        d_OrgStructureUnitId_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:OrgStructureUnitId|(m:type)");
        d_OrgStructureUnitId = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:OrgStructureUnitId");
        d_JobId_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:JobId|(m:type)");
        d_JobId = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:JobId");
        d_FullJobTitle = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:FullJobTitle");
        d_OwnerId_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:OwnerId|(m:type)");
        d_OwnerId = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:OwnerId");
        d_CareerStartDate_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:CareerStartDate|(m:type)");
        d_CareerStartDate = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:CareerStartDate");
        d_CareerDueDate_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:CareerDueDate|(m:type)");
        d_CareerDueDate = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:CareerDueDate");
        d_ProbationDueDate_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:ProbationDueDate|(m:type)");
        d_ProbationDueDate = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:ProbationDueDate");
        d_ReasonForDismissalId_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:ReasonForDismissalId|(m:type)");
        d_ReasonForDismissalId = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:ReasonForDismissalId");
        d_AccountId_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:AccountId|(m:type)");
        d_AccountId = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:AccountId");
        d_ManagerId_m_type = xmlResponse.ChilkatPath("entry[i]|content|m:properties|d:ManagerId|(m:type)");
        d_ManagerId = xmlResponse.GetChildContent("entry[i]|content|m:properties|d:ManagerId");
        i = i+1;
    }


}

chilkatExample();

Curl Command

curl -G -d "$filter=Field2%20eq%20%27Field2Value%27"
	-H "ForceUseSession: true"
	-H "BPMCSRF: {{BPMCSRF}}"
https://myserver.com/0/ServiceModel/EntityDataService.svc/Collection1Collection

Postman Collection Item JSON

{
  "name": "$filter parameter (eq operator)",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "ForceUseSession",
        "type": "text",
        "value": "true"
      },
      {
        "key": "BPMCSRF",
        "type": "text",
        "value": "{{BPMCSRF}}"
      }
    ],
    "url": {
      "raw": "{{BaseURI}}/0/ServiceModel/EntityDataService.svc/{{CollectionName1}}Collection?$filter={{FieldName2}} eq '{{FieldName2Value1}}'",
      "host": [
        "{{BaseURI}}"
      ],
      "path": [
        "0",
        "ServiceModel",
        "EntityDataService.svc",
        "{{CollectionName1}}Collection"
      ],
      "query": [
        {
          "key": "$filter",
          "value": "{{FieldName2}} eq '{{FieldName2Value1}}'"
        }
      ]
    },
    "description": "Request for getting filtered objects collection instances via the [$filter](https://www.odata.org/documentation/odata-version-3-0/odata-version-3-0-core-protocol/#thefiltersystemqueryoption) parameter with the eq operator."
  },
  "response": [
    {
      "name": "[200] Gets filtered objects collection instances. The filter uses the “equal” operator",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "ForceUseSession",
            "type": "text",
            "value": "true"
          },
          {
            "key": "BPMCSRF",
            "type": "text",
            "value": "{{BPMCSRF}}"
          }
        ],
        "url": {
          "raw": "https://myserver.com/0/ServiceModel/EntityDataService.svc/EmployeeCollection?$filter=FullJobTitle eq 'Developer'",
          "protocol": "https",
          "host": [
            "myserver",
            "com"
          ],
          "path": [
            "0",
            "ServiceModel",
            "EntityDataService.svc",
            "EmployeeCollection"
          ],
          "query": [
            {
              "key": "$filter",
              "value": "FullJobTitle eq 'Developer'"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "xml",
      "header": [
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "Content-Type",
          "value": "application/atom+xml;type=feed;charset=utf-8"
        },
        {
          "key": "Server",
          "value": "Microsoft-IIS/10.0"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "DataServiceVersion",
          "value": "2.0;"
        },
        {
          "key": "X-AspNet-Version",
          "value": "4.0.30319"
        },
        {
          "key": "X-Powered-By",
          "value": "ASP.NET"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "Date",
          "value": "Thu, 09 Apr 2020 11:22:42 GMT"
        },
        {
          "key": "Content-Length",
          "value": "12985"
        }
      ],
      "cookie": [
      ],
      "body": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<feed xml:base=\"https://myserver.com/0/ServiceModel/EntityDataService.svc/\" xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\" xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\">\n    <id>https://myserver.com/0/ServiceModel/EntityDataService.svc/EmployeeCollection</id>\n    <title type=\"text\">EmployeeCollection</title>\n    <updated>2020-04-09T11:22:42Z</updated>\n    <link rel=\"self\" title=\"EmployeeCollection\" href=\"EmployeeCollection\" />\n    <entry>\n        <id>https://myserver.com/0/ServiceModel/EntityDataService.svc/EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')</id>\n        <category term=\"Terrasoft.Configuration.Employee\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\" />\n        <link rel=\"edit\" title=\"Employee\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/CreatedBy\" type=\"application/atom+xml;type=entry\" title=\"CreatedBy\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/CreatedBy\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/ModifiedBy\" type=\"application/atom+xml;type=entry\" title=\"ModifiedBy\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/ModifiedBy\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Contact\" type=\"application/atom+xml;type=entry\" title=\"Contact\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/Contact\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/OrgStructureUnitCollectionByHead\" type=\"application/atom+xml;type=feed\" title=\"OrgStructureUnitCollectionByHead\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/OrgStructureUnitCollectionByHead\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/OrgStructureUnit\" type=\"application/atom+xml;type=entry\" title=\"OrgStructureUnit\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/OrgStructureUnit\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Job\" type=\"application/atom+xml;type=entry\" title=\"Job\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/Job\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Owner\" type=\"application/atom+xml;type=entry\" title=\"Owner\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/Owner\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/ReasonForDismissal\" type=\"application/atom+xml;type=entry\" title=\"ReasonForDismissal\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/ReasonForDismissal\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Account\" type=\"application/atom+xml;type=entry\" title=\"Account\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/Account\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Manager\" type=\"application/atom+xml;type=entry\" title=\"Manager\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/Manager\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeCollectionByManager\" type=\"application/atom+xml;type=feed\" title=\"EmployeeCollectionByManager\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/EmployeeCollectionByManager\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeCareerCollectionByEmployee\" type=\"application/atom+xml;type=feed\" title=\"EmployeeCareerCollectionByEmployee\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/EmployeeCareerCollectionByEmployee\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeFileCollectionByEmployee\" type=\"application/atom+xml;type=feed\" title=\"EmployeeFileCollectionByEmployee\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/EmployeeFileCollectionByEmployee\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeInFolderCollectionByEmployee\" type=\"application/atom+xml;type=feed\" title=\"EmployeeInFolderCollectionByEmployee\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/EmployeeInFolderCollectionByEmployee\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeInTagCollectionByEntity\" type=\"application/atom+xml;type=feed\" title=\"EmployeeInTagCollectionByEntity\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/EmployeeInTagCollectionByEntity\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/SalaryCollectionByEmployee\" type=\"application/atom+xml;type=feed\" title=\"SalaryCollectionByEmployee\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/SalaryCollectionByEmployee\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/VwEmployeesHierarchyCollectionByEmployee\" type=\"application/atom+xml;type=feed\" title=\"VwEmployeesHierarchyCollectionByEmployee\" href=\"EmployeeCollection(guid'c31c7862-fe33-4a13-9bbc-0943fa08fd02')/VwEmployeesHierarchyCollectionByEmployee\" />\n        <title />\n        <updated>2020-04-09T11:22:42Z</updated>\n        <author>\n            <name />\n        </author>\n        <content type=\"application/xml\">\n            <m:properties>\n                <d:Id m:type=\"Edm.Guid\">c31c7862-fe33-4a13-9bbc-0943fa08fd02</d:Id>\n                <d:Name>William Walker</d:Name>\n                <d:CreatedOn m:type=\"Edm.DateTime\">2017-03-30T14:50:04Z</d:CreatedOn>\n                <d:CreatedById m:type=\"Edm.Guid\">76929f8c-7e15-4c64-bdb0-adc62d383727</d:CreatedById>\n                <d:ModifiedOn m:type=\"Edm.DateTime\">2020-02-14T06:30:46.234Z</d:ModifiedOn>\n                <d:ModifiedById m:type=\"Edm.Guid\">410006e1-ca4e-4502-a9ec-e54d922d2c00</d:ModifiedById>\n                <d:ProcessListeners m:type=\"Edm.Int32\">0</d:ProcessListeners>\n                <d:ContactId m:type=\"Edm.Guid\">227aab3b-7c0c-4181-abf9-81585563ab23</d:ContactId>\n                <d:OrgStructureUnitId m:type=\"Edm.Guid\">d436a9ce-9690-4415-9e03-e8061d7cabb5</d:OrgStructureUnitId>\n                <d:Notes></d:Notes>\n                <d:JobId m:type=\"Edm.Guid\">11d68189-ced6-df11-9b2a-001d60e938c6</d:JobId>\n                <d:FullJobTitle>Developer</d:FullJobTitle>\n                <d:OwnerId m:type=\"Edm.Guid\">76929f8c-7e15-4c64-bdb0-adc62d383727</d:OwnerId>\n                <d:CareerStartDate m:type=\"Edm.DateTime\">2019-09-08T00:00:00</d:CareerStartDate>\n                <d:CareerDueDate m:type=\"Edm.DateTime\">0001-01-01T00:00:00</d:CareerDueDate>\n                <d:ProbationDueDate m:type=\"Edm.DateTime\">2020-01-09T00:00:00</d:ProbationDueDate>\n                <d:ReasonForDismissalId m:type=\"Edm.Guid\">00000000-0000-0000-0000-000000000000</d:ReasonForDismissalId>\n                <d:AccountId m:type=\"Edm.Guid\">a0bf3e92-f36b-1410-0499-00155d043204</d:AccountId>\n                <d:ManagerId m:type=\"Edm.Guid\">3e5bd47e-1ebd-41db-a9a6-a3560dcee3cb</d:ManagerId>\n            </m:properties>\n        </content>\n    </entry>\n    <entry>\n        <id>https://myserver.com/0/ServiceModel/EntityDataService.svc/EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')</id>\n        <category term=\"Terrasoft.Configuration.Employee\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\" />\n        <link rel=\"edit\" title=\"Employee\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/CreatedBy\" type=\"application/atom+xml;type=entry\" title=\"CreatedBy\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/CreatedBy\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/ModifiedBy\" type=\"application/atom+xml;type=entry\" title=\"ModifiedBy\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/ModifiedBy\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Contact\" type=\"application/atom+xml;type=entry\" title=\"Contact\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/Contact\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/OrgStructureUnitCollectionByHead\" type=\"application/atom+xml;type=feed\" title=\"OrgStructureUnitCollectionByHead\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/OrgStructureUnitCollectionByHead\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/OrgStructureUnit\" type=\"application/atom+xml;type=entry\" title=\"OrgStructureUnit\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/OrgStructureUnit\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Job\" type=\"application/atom+xml;type=entry\" title=\"Job\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/Job\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Owner\" type=\"application/atom+xml;type=entry\" title=\"Owner\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/Owner\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/ReasonForDismissal\" type=\"application/atom+xml;type=entry\" title=\"ReasonForDismissal\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/ReasonForDismissal\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Account\" type=\"application/atom+xml;type=entry\" title=\"Account\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/Account\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Manager\" type=\"application/atom+xml;type=entry\" title=\"Manager\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/Manager\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeCollectionByManager\" type=\"application/atom+xml;type=feed\" title=\"EmployeeCollectionByManager\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/EmployeeCollectionByManager\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeCareerCollectionByEmployee\" type=\"application/atom+xml;type=feed\" title=\"EmployeeCareerCollectionByEmployee\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/EmployeeCareerCollectionByEmployee\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeFileCollectionByEmployee\" type=\"application/atom+xml;type=feed\" title=\"EmployeeFileCollectionByEmployee\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/EmployeeFileCollectionByEmployee\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeInFolderCollectionByEmployee\" type=\"application/atom+xml;type=feed\" title=\"EmployeeInFolderCollectionByEmployee\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/EmployeeInFolderCollectionByEmployee\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/EmployeeInTagCollectionByEntity\" type=\"application/atom+xml;type=feed\" title=\"EmployeeInTagCollectionByEntity\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/EmployeeInTagCollectionByEntity\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/SalaryCollectionByEmployee\" type=\"application/atom+xml;type=feed\" title=\"SalaryCollectionByEmployee\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/SalaryCollectionByEmployee\" />\n        <link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/VwEmployeesHierarchyCollectionByEmployee\" type=\"application/atom+xml;type=feed\" title=\"VwEmployeesHierarchyCollectionByEmployee\" href=\"EmployeeCollection(guid'ddb34ecb-f009-484a-ad2b-0a49a475bdb2')/VwEmployeesHierarchyCollectionByEmployee\" />\n        <title />\n        <updated>2020-04-09T11:22:42Z</updated>\n        <author>\n            <name />\n        </author>\n        <content type=\"application/xml\">\n            <m:properties>\n                <d:Id m:type=\"Edm.Guid\">ddb34ecb-f009-484a-ad2b-0a49a475bdb2</d:Id>\n                <d:Name>Timothy Sawyer</d:Name>\n                <d:CreatedOn m:type=\"Edm.DateTime\">2017-03-30T14:54:20Z</d:CreatedOn>\n                <d:CreatedById m:type=\"Edm.Guid\">76929f8c-7e15-4c64-bdb0-adc62d383727</d:CreatedById>\n                <d:ModifiedOn m:type=\"Edm.DateTime\">2017-03-31T07:49:14Z</d:ModifiedOn>\n                <d:ModifiedById m:type=\"Edm.Guid\">76929f8c-7e15-4c64-bdb0-adc62d383727</d:ModifiedById>\n                <d:ProcessListeners m:type=\"Edm.Int32\">0</d:ProcessListeners>\n                <d:ContactId m:type=\"Edm.Guid\">3822fb63-0e78-416f-a06b-3d18bd5e0448</d:ContactId>\n                <d:OrgStructureUnitId m:type=\"Edm.Guid\">d436a9ce-9690-4415-9e03-e8061d7cabb5</d:OrgStructureUnitId>\n                <d:Notes></d:Notes>\n                <d:JobId m:type=\"Edm.Guid\">11d68189-ced6-df11-9b2a-001d60e938c6</d:JobId>\n                <d:FullJobTitle>Developer</d:FullJobTitle>\n                <d:OwnerId m:type=\"Edm.Guid\">76929f8c-7e15-4c64-bdb0-adc62d383727</d:OwnerId>\n                <d:CareerStartDate m:type=\"Edm.DateTime\">2016-12-04T00:00:00</d:CareerStartDate>\n                <d:CareerDueDate m:type=\"Edm.DateTime\">2019-10-08T00:00:00</d:CareerDueDate>\n                <d:ProbationDueDate m:type=\"Edm.DateTime\">0001-01-01T00:00:00</d:ProbationDueDate>\n                <d:ReasonForDismissalId m:type=\"Edm.Guid\">f83b228a-f36b-1410-b783-00155d04320c</d:ReasonForDismissalId>\n                <d:AccountId m:type=\"Edm.Guid\">e308b781-3c5b-4ecb-89ef-5c1ed4da488e</d:AccountId>\n                <d:ManagerId m:type=\"Edm.Guid\">3e5bd47e-1ebd-41db-a9a6-a3560dcee3cb</d:ManagerId>\n            </m:properties>\n        </content>\n    </entry>\n</feed>"
    }
  ]
}