Forum Discussion

Pretty's avatar
Pretty
New Contributor III
4 years ago

Call Runtime URL

Hi All
I stuck in between calling all the runtime details
My agenda is
1.I trying to get all runtime details for the specified organization for our triggered and scheduled task
so 1st I called the URL in rest get

I got Response from URL

next I am trying to call all the runtime task details of Pipeline parameter and Extra Details as shown below in screenshot

Pipeline parameter

Extra Details

how can I call all those details in endpoint URL is it possible ?

please help me in this

Thanks in advance

3 Replies

  • SpiroTaleski's avatar
    SpiroTaleski
    Valued Contributor

    @yashasvi74

    Probably you will need to send the whole xml as a string.

    Try, after the File Reader Snap to put Binary to Document Snap(with NONE for Encode or Decode):

    and then, send the content in REST Post Snap:

    BR,
    Spiro Taleski

    • yashasvi74's avatar
      yashasvi74
      New Contributor

      Hi @Spiro_Taleski

      On doing this I am getting error in Rest post snap. PFB the snapshot.

      Regards,
      Yashasvi

      • SpiroTaleski's avatar
        SpiroTaleski
        Valued Contributor

        @yashasvi74

        No, my proposal is to:

        • After File Reader Snap(if file that you are reading is xml) to add Document to Binary and then pass the content to REST Post Snap.

        BR,
        Spiro Taleski

  • nluu's avatar
    nluu
    New Contributor II

    hi @yashasvi74,
    Could you please provide the body of the request, and the error that you got? Did you already try to build the body of the request in the form of XML as a String? The body must include all namespaces like env:…. I worked for me in my case.
    Regards,
    Trung.

    • yashasvi74's avatar
      yashasvi74
      New Contributor

      I am having an xml file & that I am trying to post.

      • nluu's avatar
        nluu
        New Contributor II

        Hi @yashasvi74,
        did you try to user a mapper to parse this body as a String into a $body param?
        Regards,
        Trung.

  • bojanvelevski's avatar
    bojanvelevski
    Valued Contributor

    The REST Post snap is offering you a single file upload, so there’s no need to parse the file.
    Try upload the file directly into the snap.