Skip to Content

HCI: Proxy to REST Scenario Subsequent call

Goodmorning to all,

i am beginner HCI developer, and i have to develop flow from HR--> HCI --> REST.
I have to Upload a file from proxy to Rest, but before upload, i have to get token from the API REST. So i have 2 different url , the first one URL LOGIN and second is URL Upload File.
How can i pass the file as attachment via proxy on HCI?
If somebody has some experience or iFlow like this, please share also with screenshot about configuration.

thanks,

best regards.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Nov 04, 2019 at 11:19 AM

    Hi

    In some cases you can use the Oauth authentication on the HTTP Adater in CPI. Then it will handle the lookup it self.

    Otherwise you just create a call in the same process to perform the authentication lookup and then use the authentication in the REST Call.

    If you are able to upload proxy wiht payload to the payload, then try to set the iflow into trace mode and then sent the message and see if you can see the payload in the trace information.

    Daniel

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 04, 2019 at 12:15 PM

    The HTTP adapter is a raw adapter. You can create any HTTP payload in it. You just have to modify the payload so it fits with what you see otherwise with payloads and possible change the header.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.