调用Successfactors API

时间:2017-11-06 05:27:57

标签: sapui5 sap-fiori

我的问题是,要应用以下流程,我需要一个批准者用户名,通过该用户名我可以找到sessionID和授权。但是我只能通过登录成功因素Web控制台获得该用户名。但我不能每次都在Web控制台上,然后以编程方式应用上述过程。那么,任何人都可以解决我的问题吗?

我已完成以下任务。我正在使用X人的用户名,即 xyz 作为参考。您可以使用任何批准人进行更改。

https://apisalesdemo8.successfactors.com/odata/v2/approveWfRequest?wfRequestId=1234L&username=xyz

SOAP UI:
Username: xyz,
Password: "password"
Company ID: "companyID"
Then JSESSIONID generated by using above credentials in SOAP UI.…….

Restlet Client:
Authorization:
Username: xyz@companyID
Password: "password"
Then got the response:

<?xml version="1.0" encoding="utf-8" ?>
<d:WfRequestActionResponsexmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<d:elementm:type="SFOData.WfRequestActionResponse">
<d:status>success</d:status>
<d:wfRequestIdm:type="Edm.Int64">1234</d:wfRequestId>
</d:element>
</d:WfRequestActionResponse>

I have applied above credentials and process on 1234 workflowID, the status changed from PENDING to COMPLETED.

0 个答案:

没有答案