What is your goal?
I want to load dynamic template parameters via RPC for each item inside an array spec in a custom app
module.
Specifically: I have a params field of type collection inside an array spec. The collectionβs fields are
defined dynamically by an RPC that fetches parameter definitions from my API using designId and
version. These two values are selected by the user at the parent level (via options.nested chain before
the array).
What is the problem & what have you tried?
The RPC is called but {{parameters.designId}} and {{parameters.version}} resolve to empty inside the
array spec item, causing a 404 from my API.
The same RPC works correctly in a single-item module where params is placed directly inside the
options.nested chain (not inside an array).
Module structure that works (no array):
{
βnameβ: βdesignIdβ, βtypeβ: βselectβ,
βoptionsβ: {
βstoreβ: βrpc://getDesignsβ,
βnestedβ: [{
βnameβ: βversionβ, βtypeβ: βintegerβ,
βoptionsβ: {
βnestedβ: [
{ βnameβ: βparamsβ, βtypeβ: βcollectionβ, βspecβ: [βrpc://GetParamsβ] }
]
}
}]
}
}
Module structure that fails (params inside array):
{
βnameβ: βdesignIdβ, βtypeβ: βselectβ,
βoptionsβ: {
βstoreβ: βrpc://getDesignsβ,
βnestedβ: [{
βnameβ: βversionβ, βtypeβ: βintegerβ,
βoptionsβ: {
βnestedβ: [{
βnameβ: βcontentsβ, βtypeβ: βarrayβ,
βspecβ: [
{ βnameβ: βfileNameβ, βtypeβ: βtextβ },
{
βnameβ: βparamsβ, βtypeβ: βcollectionβ,
βspecβ: [βrpc://GetParamsβ]
}
]
}]
}
}]
}
}
RPC communication.json:
{
βurlβ: β/file/design/parameter/{{parameters.designId}}?version={{parameters.version}}β,
βmethodβ: βGETβ,
βheadersβ: { βAuthorizationβ: βBearer {{connection.accessToken}}β },
βresponseβ: { βoutputβ: β{{body}}β }
}
Everything I have tried for the params spec inside the array:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββ
β Approach β Result β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββ€
β spec: [βrpc://GetParamsβ] β 404 β {{parameters.de β
β β signId}} is empty β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββ€
β spec: { βstoreβ: βrpc://GetParamsβ, βqsβ: { βdesignIdβ: β{{designId}}β } β 404 β not resolved β
β } β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββ€
β spec: { βstoreβ: βrpc://GetParamsβ, βqsβ: { βdesignIdβ: β 404 β not resolved β
β β{{parameters.designId}}β } } β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββ€
β spec: { βstoreβ: βrpc://GetParams?designId={{parameters.designId}}&versio β 404 β not resolved β
β n={{parameters.version}}β } β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββ€
β β RPC works β β but β
β Moving params outside the array (to version.options.nested) β breaks my use case β
β β (see below) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββ
Moving params outside the array is not an option for me because my use case requires per-item different
parameter values (bulk invoice generation for hundreds of members, each with different billing data).
My question: Is there any supported way to pass designId and version from the parent options.nested
chain into an RPC called from within an array spec item? Or is this a known platform limitation?
Related threads with the same unresolved issue: #75691, #92289, #10852
Error messages or input/output bundles
The RPC call results in an HTTP 404 from my API.
Debugging confirms that {{parameters.designId}} and {{parameters.version}} are both resolving to empty
strings when the RPC is called from within the array spec item context. The URL is constructed with
empty values instead of the user-selected ones.