Skip to Content
avatar image
Former Member

SAP HCI - Suceess Factors REST API call

Hello All,

We are trying to acess the REST API generateNextPersonID in Suceess Factors .How to configure the below artifact. I have given the SF url , Client ID as user@company fromat and client secret as pasword.But it is not working.Please help.

Regards,

Tibin

capture.png (8.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

11 Answers

  • Best Answer
    Mar 18, 2017 at 07:11 AM

    Hello Tibin,

    I am able to generate the person id without any issues,please find the below screenshot.

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 24, 2017 at 06:59 PM

    Hello Tibin,

    You can use HTTP Receiver adapter with below Query.

    https://SF-URL/odata/v2/generateNextPersonID

    Make sure there is no data ( incoming data ) coming to this external call( You have to set it to null)

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 16, 2017 at 07:40 PM

    Hello SriPrasad,

    I have tried as you have suggested, but I am facing below error.

    Can you please what's going wrong.

    Message processing failed.

    org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://url of SF/odata/v2/generateNextPersonID with statusCode: 411

    Can you explain what is the below:

    Make sure there is no data ( incoming data ) coming to this external call( You have to set it to null)

    Regards,Tibin

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 17, 2017 at 07:32 AM

    Hello Tibin,

    Have content Modifier before the Request Reply ( where you are calling HTTP url ) without any body.

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 18, 2017 at 06:52 AM

    Hello Sriprasad,

    Thanks for your quick help.

    I have maintained the header parameter in content modifier as you have suggested , but it is showing error log to maintain content-length.

    So I have I have maintained the content length, content type as per below screen shot and tried , but same error am facing eventhogh i maintained content length. I have set the content- length to other digits as well and tried .Required your valubale help.

    I have tried in REST full services ( chrome add on ) and I am able to get the response.

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Also Please find the test I have tried as per below .Kindly suggest.

    Regards,

    Tibin Joseph

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 18, 2017 at 10:21 AM

    Sriprasad,

    Thanks a lot Sriprasad :) .I tried similar as you have mentioned.After configuring I got 401 instead of 411 which I was facing before..

    I was using the below credential with successfactors check box ticked. So I created a new credential for HTTP call without ticking the check box .It worked.

    Below is the response.

    1 more basic question here, How do i set this person id generated to a content modifier property.I have doubt to mention the xpath .

    Regards,

    Tibin

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 18, 2017 at 12:08 PM

    Hello Tibin,

    Good to know it worked.

    You can use //d:personID and you have to add the namespace mapping in runtime configuration.

    Also please close the thread if issue is resolved.

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 18, 2017 at 12:57 PM

    Sriprasad,

    Thanks a lot..

    Really helped all you suggestions.Looking forward your help in future as well.

    Regards,

    Tibin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 07, 2017 at 07:50 AM

    Hello Sriprasad,

    I was able to generate the employee numbers as you have suggested.Below are working scenarios.

    1.I am using time event and triggering the flow, it is working

    2.I am using sender SOAP adpater and calling from SOAP UI, It s working

    But, recently the requurement have been changed and client is going to send the payload using HTTP Post to HCI .So I have now HTTP sender as adpater.Recenlty we had a test from client system ( client is sending data via HTTP Post) and we are facing issue on employee number generation.I am not understanding why it is affecting.

    To replicate that I used Postman ( an add on tool in Chrome for HTTP Post) and I am facing the same issue. Nothing got changed and everying is similar as it is , but facing the issue,

    Please help with issue urgenlty.I am unbale to find out the cause, becuase functionaly everying the same , only the triggerung point changed. :(

    HTTP

    Error -

    org.apache.camel.CamelExchangeException: Error creating URL. Exchange[ID-vsa2156378-ash-od-sap-biz-34252-1493463727958-262-6]. Caused by: [org.apache.camel.RuntimeExchangeException - Cannot analyze the Exchange.HTTP_PATH header, due to: Cannot analyze the Exchange.HTTP_PATH header, due to: cannot find the right HTTP_BASE_URI on the exchange: Exchange[ID-vsa2156378-ash-od-sap-biz-34252-1493463727958-262-6] on the exchange: Exchange[ID-vsa2156378-ash-od-sap-biz-34252-1493463727958-262-6]], cause: org.apache.camel.RuntimeExchangeException: Cannot analyze the Exchange.HTTP_PATH header, due to: cannot find the right HTTP_BASE_URI on the exchange: Exchange[ID-vsa2156378-ash-od-sap-biz-34252-1493463727958-262-6]

    SOAP

    Regards,

    Tibin

    Add comment
    10|10000 characters needed characters exceeded

  • May 08, 2017 at 12:40 PM

    Hello Tibin,

    I have tried its working fine with Postman.Below is the response which I got.

    Could you please share the URL which you have used in Chrome and the screenshot of Sender HTTP Channel.

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded