简体   繁体   English

如何使用 SuccessFactors Compound Employee API 检索快照数据?

[英]How to retrieve snapshot data using SuccessFactors Compound Employee API?

I have to retrieve employee's historical data from SuccessFactors, and I've tried to do it using SFSF Compound Employee API but it didn't work well.我必须从 SuccessFactors 检索员工的历史数据,我尝试使用 SFSF Compound Employee API 来做到这一点,但效果不佳。 I don't have experience of API call, so I didn't understand what the SFSF documentation said.我没有 API 电话的经验,所以我不明白 SFSF 文档说的是什么。

( https://help.sap.com/doc/60753cd8689244d18a6960f790b08661/2211/en-US/SF_EC_Comp_Emp_API.pdf ) ( https://help.sap.com/doc/60753cd8689244d18a6960f790b08661/2211/en-US/SF_EC_Comp_Emp_API.pdf )

In that document, the following sample code is written.在该文档中,编写了以下示例代码。

<soapenv:Header/>
<soapenv:Body>
<urn:query>
<urn:queryString>SELECT person、employment_information、job_information FROM
CompoundEmployee WHERE Person_id_external = 'admin' and snapshot_date = to_DateTime('2015-03-10T08:00:00Z')</urn:queryString>
<urn:param>
<urn:name>query mode</urn:name>
<urn:value>snapshot</urn:value>
</urn:param>
</urn:query>
</soapenv:Body>
</soapenv:Envelope>

I tested this with Azure synapse Analytics and it did not work.我用 Azure synapse Analytics 测试了这个,但它没有用。 突触测试 Could anyone give me the correct code or any advice?谁能给我正确的代码或任何建议? Any answers would be appreciated.任何答案将不胜感激。 Thank you.谢谢。

WHat is the connector you are using?您使用的连接器是什么? Is it REST?是REST吗? I see the response as XML. At this REST connector only support JSON.我看到响应为 XML。在此 REST 连接器仅支持 JSON。

https://learn.microsoft.com/en-us/azure/data-factory/connector-rest?tabs=data-factory#rest-as-source https://learn.microsoft.com/en-us/azure/data-factory/connector-rest?tabs=data-factory#rest-as-source

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM