Using RPC for left-side operands

Hello all,

I’m building a custom app.
One of the module has a filter.
I would like to use an RPC to populate the list of left-hand operands:

The problem is to me the documentation isn’t clear enough about how to accomplish this.

To get the current result I’m getting now, I have to hard-code the options.
To get this:
image

I have to type in this as one of my module’s mappable parameters:
image

Now, to try an use an RPC here, what’s the correct syntax?

I tested my RPC and it returns:

Here’s one attempt as using an RPC for dynamic left-hand operands:
image

Result is just a text field in the module:
image

According to this help page https://docs.make.com/apps/app-components/parameters/filter,
I can specify some sort of string which is a URL of RPC returning the list of left-side operands

But, what’s the correct syntax? The examples on the page skip this.
When hard-coded, the options object is an array of collections, each containing a label and value.
My RPC returns the same thing, I think!

Thanks for all your help!

The syntax you used in the filter within the mappable parameters seems correct, as does the response of the RPC. It works in my test.

What does the communication of your RPC look like? Do you iterate over the objects in the RPC’s response like this?

And did you try without query params in the rpc://?

Cheers,
Henk

I will agree with this every day of the week, for every topic explained there.

1 Like

Hello @Henk-Operative,

Thanks for responding.

Yep, and when testing the RPC the output is an array of collections, each with a “value” and “label”, which I believe is expected.

I did try without the query param (even though I need it).
I also hard-coded the parameter in the RPC so even without any parameters anywhere I still get the same results.

Just curious, what does your RPC output look like, do you have a screenshot?

mmm, strange.

One issue could be that the RPC uses a different connection in the test than in your scenario. With the Integromat DevTools, you won’t see connection issues. But in the console you should be able to see errors if something is wrong.

Do you see something like this?

Because I tried to replicate an unauthorized connection and it showed me just a single text field instead of the dropdown. Although additionally, the 401 unauthorized error.

Cheers,
Henk

Ok, well it looks like the parameters are causing the problem.
It’s possible to send query parameters to RPCs, but is it possible to send variable query parameters?

Ok, got it.
I nest the filter under another parameter then I’m able to use that parameter in the RPC.

Reference: https://docs.make.com/apps/app-structure/rpcs/types-of-rpcs/dynamic-options-rpc#select-parameter-with-nested-rpcs

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.