# Dynamic parameters RPC

**URL:** <https://community.make.com/t/dynamic-parameters-rpc/17629>\
**Category:** Questions\
**Tags:** custom-apps\
**Created:** [October 15, 2023, 1:15pm UTC](https://community.make.com/t/dynamic-parameters-rpc/17629 "2023-10-15T13:15:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdulkarim\_Ouaydah](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/abdulkarim_ouaydah/32/15242_2.png) [@Abdulkarim\_Ouaydah](https://community.make.com/u/Abdulkarim_Ouaydah)\
**Post date:** [October 15, 2023, 1:15pm UTC](https://community.make.com/t/dynamic-parameters-rpc/17629/1 "2023-10-15T13:15:25Z")

</div>

### Hello makers,

I am currently developing an RPC that accepts a parameter of type ‘select’. My goal is for the result to dynamically adjust based on the provided parameter.  
The problem is when i open the app i get “Bad request”

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/d/6d4fceb85cb8568873f9d4a9b30f407bc14077f0.png)

heres the rpc communication section:

```auto
{
	"url": "/recordTypes/{{parameters.type}}",
	"method": "GET",
	"response": {
		"iterate": "{{body.records}}",
		"output": {
			"value": "{{item.value}}"
		}
	}
}

```

and this is the parameter:

```auto
[
 {
    "name":"type",
    "label":"Type",
    "type":"select",
    "options":[
            {
            "value":"animal"
            },
            {
            "value":"person"
            }
        ],
    "required":true
    }   
]

```

and the module params are :

```auto
[
	"rpc://getparams"
]

```

If the rpc url is static it works fine but that is not what i need,  
Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Thomas\_Gaillard](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@Thomas\_Gaillard](https://community.make.com/u/Thomas_Gaillard)\
**Post date:** [October 16, 2023, 3:56am UTC](https://community.make.com/t/dynamic-parameters-rpc/17629/4 "2023-10-16T03:56:09Z")

</div>

Hi Abdulkarim,

I believe something like this should fit the bill (you would need to use the “nested” directive)

```auto
[
 {
    "name":"type",
    "label":"Type",
    "type":"select",
    "options":{
		"store":[
            {"value":"animal"},
            {"value":"person"}
        ],
        "nested": [
                {
                    "name": "parameter_2",
                    "type": "select",
                    "label": "Parameter 2",
                    "required": true,
                    "mappable": false,
                    "options": {
                        "store": "rpc://getparams"
                    }
                }
            ]
		},
    "required":true
    }   
]

```

---

<div class="post-metadata">

**Author:** ![Abdulkarim\_Ouaydah](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/abdulkarim_ouaydah/32/15242_2.png) [@Abdulkarim\_Ouaydah](https://community.make.com/u/Abdulkarim_Ouaydah)\
**Post date:** [October 16, 2023, 8:45am UTC](https://community.make.com/t/dynamic-parameters-rpc/17629/5 "2023-10-16T08:45:27Z")

</div>

Hi thomas  
this is exactly what im looking for!  
Thank you!

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [January 14, 2024, 4:57am UTC](https://community.make.com/t/dynamic-parameters-rpc/17629/6 "2024-01-14T04:57:15Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


