Rpc in collection spec not working in interface only

Hi everyone and happy new year,

I got an issue I can’t understand. I’m working on a custom app and I wanted to use RPC for reusable structure of my app (description of an order used both as parameter and interface in my case).

In my use case, I need to combine the result of this RPC with other fields in my collection (on order, a payer, payments… all gather inside a collection).

When I use it as mappable parameter, it works well. But if I copy the exact same code in the interface tab it does not work (the RPC seems not to be called when I look at network in dev tools).
My code:

[
	{
		"type": "collection",
		"name": "order",
		"spec": [
			{
				"type": "text",
				"name": "client_name"
			},
			"rpc://getOrderFields"
		]
	}
]

As mappable parameters:

As interface, only the text field is displayed:

Any ideas ?

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