How to list routine names inside a module using Robot Web Services (RWS) 1.0?

I want to get a list of routine names inside a specific module using Robot Web Services (RWS) 1.0.

Could anyone guide me on how to achieve this or share the correct API endpoint/request structure for it?

Thank you in advance!

searchRoutines(allread, taskName) → {Promise.<Array.<API.RAPID.routines>>}

Returns:

A list of API.RAPID.routines

Type: Promise.<Array.<API.RAPID.routines>>

May work for you, I have not tried it myself.

1 Like

I managed to solve the issue using Postman!

First of all, a huge thanks to @Estop! Your mention of the searchRoutines function was the exact clue I needed. It made me realize that RWS 1.0 requires triggering a search action via a POST request, rather than a simple GET.

For anyone else trying to achieve this using Postman, here is the quick solution:

  1. Method & URL: Set to POST

http://<Robot_IP>/rw/rapid/symbols?action=search-symbols

2. **Auth:** Use **Digest Auth** with your robot credentials.
3. **Body:** Select **`x-www-form-urlencoded`** and add these keys:
   * **`blockurl`** : `RAPID/T_ROB1` *(change to your task name)*
   * **`view`** : `block`
   * **`recursive`** : `true`
   * **`symtyp`** : `prc` *(filters for procedures/routines only)*

This will successfully return the XML list of all your routines. Thanks again for the help!
1 Like

hi there you use this npm package https://www.npmjs.com/package/abb-rws-client