Navigation

    OpenIAP

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    NM Execute Script

    General Discussion
    4
    8
    53
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rohit last edited by

      Can we access the assigned variable or arguments inside the OpenRPA.NM Execute Script? If yes can you show me how @Allan-Zimmermann

      Allan Zimmermann R 2 Replies Last reply Reply Quote 0
      • Allan Zimmermann
        Allan Zimmermann @rohit last edited by Allan Zimmermann

        No, but the script can be assigned as an string variable .. so just create a string with your script and the inject the variables like that.
        98b54164-2315-451f-82d0-342b14c1dd31-image.png
        then myscript could be assign something like

        "top.location.href = '" & url & "';"
        

        b984c7b2-c04e-4594-8c97-7c60975bce62-image.png

        Use VbCrLf to add new lines

        "top.location.href = '" & url & "';" & VbCrLF & 
        "console.log('hi mom');"
        
        T 1 Reply Last reply Reply Quote 0
        • R
          rohit @rohit last edited by

          @rohit Thanks it's working for my use case now @Allan-Zimmermann

          1 Reply Last reply Reply Quote 0
          • T
            tcfto.sk @Allan Zimmermann last edited by

            @allan-zimmermann
            Hi. How to get a string from a script?

            Allan Zimmermann 1 Reply Last reply Reply Quote 0
            • Allan Zimmermann
              Allan Zimmermann @tcfto.sk last edited by

              @tcfto-sk yes, use result

              B 1 Reply Last reply Reply Quote 0
              • B
                butamuh.2022 @Allan Zimmermann last edited by

                @allan-zimmermann
                @tcfto-sk

                Where to see an example of returning data from a script? I don't understand how to do it.

                Allan Zimmermann 1 Reply Last reply Reply Quote 0
                • Allan Zimmermann
                  Allan Zimmermann @butamuh.2022 last edited by

                  f212535b-8fad-4eb6-a279-fd4684d9a835-image.png @butamuh-2022

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    butamuh.2022 @Allan Zimmermann last edited by

                    @allan-zimmermann Yes. It's working. Thanks.

                    1 Reply Last reply Reply Quote 0
                    • Locked by  A az 
                    • First post
                      Last post