Skip to Content
0
Jan 30 at 11:43 AM

How to retrieve Employee data using Compound Employee API

855 Views

Hi, experts.

I want to retrieve Employee data using Compound Employee API but it's not worked.

I've read the SAP document of Employee Central Compound Employee API, then I send API call as written in the document.

However the response was not what I expected.

If you have any ideas to resolve this issue, plz let me know.

Any answer would be helped.

Thank you.

The request was like this;

<query>
 <queryString>
 SELECT person, personal_information, employment_information,
job_information
 FROM CompoundEmployee
 WHERE last_modified_date >= to_date('2022-01-01','YYYY-MM-DD')
 </queryString>
 <param>
 <name>maxRows</name>
 <value>50</value>
 </paramY
</query>
The response was like this;
 
[
  {
    "wsdl:definitions": {
      "wsdl:types": {
        "schema": [
          {
            "complexType": {
              "sequence": {
                "element": [
                  {
                    "@name": "errorCode",
                    "@type": "xsd:string"
                  },
                  {
                    "@name": "errorMessage",
                    "@type": "xsd:string"
                  }
                ]
              },
              "@name": "SFWebServiceFaultException"
            },
            "element": {
              "@name": "SFWebServiceFault",
              "@type": "fns:SFWebServiceFaultException"
            },
            "@elementFormDefault": "qualified",
            "@targetNamespace": "urn:fault.sfapi.successfactors.com"
          },
          {
            "import": {
              "@namespace": "urn:fault.sfapi.successfactors.com"
            },
            "simpleType": [
              {
                "restriction": {
                  "enumeration": [
                    {
                      "@value": "insert"
                    },
                    {
                      "@value": "update"
                    },
                    {
                      "@value": "upsert"
                    },
                    {
                      "@value": "delete"
                    },
                    {
                      "@value": "query"
                    },
                    {
                      "@value": "queryMore"
                    }
                  ],
                  "@base": "xsd:string"
                },
                "@name": "featureType"
              },
              {
                "restriction": {
                  "enumeration": [
                    {
                      "@value": "string"
                    },
                    {
                      "@value": "date"
                    },
                    {
                      "@value": "datetime"
                    },
                    {
                      "@value": "int"
                    },
                    {
                      "@value": "long"
                    },
                    {
                      "@value": "float"
                    },
                    {
                      "@value": "double"
                    },
                    {
                      "@value": "boolean"
                    },
                    {
                      "@value": "binary"
                    }
                  ],
                  "@base": "xsd:string"
                },
                "@name": "dataType"
              }
            ],
            "complexType": [
              {
                "sequence": {
                  "element": [
                    {
                      "@name": "companyId",
                      "@type": "xsd:string"
                    },
                    {
                      "@name": "username",
                      "@type": "xsd:string"
                    },
                    {
                      "@name": "password",
                      "@type": "xsd:string"
                    },
                    {
                      "@name": "developerKey",
                      "@type": "xsd:string",
                      "@minOccurs": 0,
                      "@maxOccurs": 1
                    }
                  ]
                },
                "@name": "SFCredential"
              },