HR integration how to connect to Successfactors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 04:07 AM
Hello!
I try to configure the interface between SuccessFactors and ServiceNow by using the HR Integrations Application.
I now followed the instructions on https://docs.servicenow.com/bundle/newyork-hr-service-delivery/page/product/human-resources/concept/...
and followed them step by step.
Unfortunately, it is not working now and I get the following errors in the log:
1. Failed to retrieve login session token from SuccessFactor
2. ..... Method failed: (/sf/start/) with code: 400
3. SuccessFactors ...... Status: 400 Error:
If I go through the links manually in my browser, then I can use the credentials successfully.
I configured SOAP and REST. But I found the message in the SuccessFactors SOAP interface :
Please Note - SFAPI is depricated as of August 1, 2018. Please use OData for new development and consider moving your legacy applications and integrations to OData.
Question:
1) Can anyone help me with the error messages? What do they mean? What do I need to change?
2) What is with the message regarding the SFAPI in SuccessFactors?
Many thanks, any help is welcome!
- Labels:
-
HR Service Delivery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2020 07:31 AM
For the REST API.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2020 07:40 AM
Okay cool! REST is working now.
But what do I need to do to get SOAP running? for the login function I get the response:
<errorCode>FAILED_AUTHENTICATION</errorCode><errorMessage>Login failure due to the invalid company!
in HR Web Services > HR SOAP Services > SOAP Message Functions > Login
I can see the
<urn:credential>
<urn:companyId>${credential.companyId}</urn:companyId>
<urn:username>${credential.username}</urn:username>
<urn:password>${credential.password}</urn:password>
<!--Optional:-->
<urn:developerKey>${credential.developerKey}</urn:developerKey>
</urn:credential>
But after running the Test related link, I see in the response, that no function (e.g. ${credential.companyID} ) was filled and, therefore, no login was possible. But If I add them manually and retest them, then I get the correct response.
Question: What do I need to do, hat the credentials are filled in?! I added the credentials in the Source modul but they are not pulled from there.
I also tried to get the right data centers from here,
https://apps.support.sap.com/sap/support/knowledge/public/en/2412791
but it is also not working. Can you please help me here too?
Thank you very much so far! It was really helpful!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2020 08:30 AM
You can reach out to me directly to verify your SOAP settings. I do not expect you to share on the Community, but it sounds like this is the last hurdle.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2020 12:11 AM
Hi Mike,
thank you, but I did not find any way to do so.
I can explain it on high level below. The question comes at point 7:
1) In HR Integration > Sources I added the SOAP credentials for Inbound and Outbound. The Endpoint I put from here:
https://apps.support.sap.com/sap/support/knowledge/public/en/2412791
2) I added the company ID to HR Integration Additional Inputs, while leaving the rest as it is.
3) In HR Integrations > HR Web Services > HR SOAP Service I used the same link as in 1) and added /sfapi/v1/soap?wsdl to its end.
4) Then after some failed testing I clicked on the related link: Generate sample SOAP messages
5) Afterwards, I clicked on e.g. the login function and tested it. There, I received the error message that Authentification failed (but HTTP Status is 200). Then I realised, that before I click on test in the login function, that there are variables described in the xml code (e.g. <urn:companyId>${credential.companyId}</urn:companyId>). But after clicking on Test, I saw that at this place, in the xml code, were no values pulled to.
6) When I add the values that belong there manually, then everything works fine.
7) So I think the last thing that needs to be clarified is: What do I need to do, that the xml accesses the credentials added in HR Integration > Source?
Maybe that clarifies the problem little bit better:) Thank you so much Mike!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2020 04:15 AM
Hi Max,
When you manually test the SOAP function the credentials are not automatically pulled in, this is part of what the OOB code will do for the job.
The SOAP endpoint should be specific to your instance, not the API repository. That may be your issue. It should look something like this - https://salesdemo6.successfactors.com:443/sfapi/v1/soap (replacing salesdemo6.successfctors.com with your SFSF URL).
Regards,
Mike