Workflow Soluiton

 View Only
  • 1.  Need REST Generator with support for dynamic URL (URL provided by user)

    Posted Feb 20, 2019 07:17 AM
      |   view attached

    Hello,

    As of now, I have created REST generator which is able to produce access token with xxx.yyy.zzz as URL and some parameters as request contents. I can easily modify the request contents since there is provision for dynamic values/process variables, but there is no such provision for base URL (at least I didnt find it). It looks like it has to be static and there is no way for user to tweak into this URL. (e.g. User may want to select the server/host which is going to provide the tokens).

    Please let me know if there is anyway to create the REST Generator with dynamic / user driven URL.



  • 2.  RE: Need REST Generator with support for dynamic URL (URL provided by user)

    Posted Feb 21, 2019 08:42 AM

    Will the different servers always be the same API endpoint, so that for instance SEP API is hosted on Server A B and C and you want to chose A to get the token for and work with?

    It's a bit of a hack but you could have the base url be just "https://" then make the variable be with the path, in this case [a] (rename to URL etc)

    This does assume you've already generated the Components using the correct Base URL in the previous screen, got your RequestContent/ResponseContent working then modified this later.

    [a] will then become a variable in your WF scope you can edit.



  • 3.  RE: Need REST Generator with support for dynamic URL (URL provided by user)

    Posted Jun 13, 2019 08:04 AM

    Hello Alex,

    Hope you are doing well.

    Sorry for delying response on above comment.

    I have tried the way you specified but somehow I am not able to create Post request having JSON body to get the response from REST generator. I am not able to find the place to put JSON body in POST request in REST generator.

    I have tried with Postman and I am getting the expected response.

    Attached is the acreen shot of the POSTMAN request.

    Could you please suggest how can I add JSON body in POST request using REST generator.

    Thanks

    Regards,

    Kaustubh



  • 4.  RE: Need REST Generator with support for dynamic URL (URL provided by user)

    Posted Jun 13, 2019 09:23 AM

    Did you get time to read the POST Article from the series?



  • 5.  RE: Need REST Generator with support for dynamic URL (URL provided by user)

    Posted Jun 14, 2019 05:29 AM

    Thanks for the link Alex, I will go through it and update if it works in my case.

     

    Regards,

    Kaustubh