We are trying to build an App that utilizes a nested RPC call which will first allow someone to select a Workspace from a dropdown that will be populated by the results from an API call. Then they will select a Board with a dropdown that is an RPC call to List all the boards on a the Workspace that was Selected from the previous dropdown. There eventually will be another one which users will select a Section from the BoardID selected in the previous dropdown as well.
We have an issue where the first RPC call to List Workspaces will not load the first RPC call to list the Workspaces. Gives a “401 error Failed to Load Data!”. I’ve noticed that it will show up even before I choose a connection and even after i choose a connection and refresh the options it still happens.
We have an RPC that just gets the Workspaces and that works exactly as intended when tested.
Here is the Communicat Code:
[
{
"name": "workspaceId",
"type": "select",
"label": "Workspace",
"required": true,
"mappable": false,
"options": {
"store": "rpc://GetWorkspaces",
"nested": [
{
"name": "boardId",
"type": "select",
"label": "Board",
"required": true,
"mappable": false,
"options": {
"store": "rpc://getBoards",
"params": {
"workspaceId": "{{parameters.workspaceId}}" // Ensure correct workspaceId is passed here
},
"nested": [
{
"name": "sectionId",
"type": "select",
"label": "Section",
"required": true,
"mappable": false,
"options": {
"store": "rpc://getSections",
"params": {
"boardId": "{{parameters.boardId}}" // Ensure correct boardId is passed here
}
}
}
]
}
}
]
}
}
]
Here is the Parameters Code
[
{
"name": "workspaceId",
"type": "select",
"label": "Workspace",
"required": true,
"mappable": false,
"options": {
"store": "rpc://GetWorkspaces", //proper usage of options in this case
"nested": [
{
"name": "boardId",
"type": "select",
"label": "Board",
"required": true,
"mappable": false,
"options": {
"store": "rpc://getBoards", //don't forget to store your options
"nested": [
{
"name": "sectionId",
"type": "select",
"label": "section",
"required": true,
"mappable": false,
"options": "rpc://getSections"
}
//you are not using "nested" after it
//-> there's no need to "store" options
]
}
}
]
}
}
]