Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
amaaiia
Skilled Sharer
Skilled Sharer

Set Stored Procedure parameter name as variable

Is there any way to set a stored procedure parameters name as input variables and not as fixed strings?

I'd like to pass @item().param_name as variable as follows:

amaaiia_0-1716187219326.png

I've seen a possible solution, that is passing through Dynamic Content of source settings the full json string with parameters configuration as follows:

@json(string({"Params":{"ParameterName1":{"value":"ParameterName1Value","type":"String"}}}))
@json(string(concat('{"Params":{"',variables('par_name'),'":{"value":"',variables('par_value'),'","type":"String"}}}')))
But I get this error:
amaaiia_0-1716188474104.png

Which is the json struct format that Dynamic Content needs?

1 ACCEPTED SOLUTION
amaaiia
Skilled Sharer
Skilled Sharer

Missing ending .params:

@json(string(concat('{"Params":{"',variables('par_name'),'":{"value":"',variables('par_value'),'","type":"String"}}}'))).params

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @amaaiia ,

Glad to know that you were able to get to a reoslution. Please continue using Fabric Community on your further queries.

amaaiia
Skilled Sharer
Skilled Sharer

Missing ending .params:

@json(string(concat('{"Params":{"',variables('par_name'),'":{"value":"',variables('par_value'),'","type":"String"}}}'))).params

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Free Fabric Certifications

Free Fabric Certifications

Get Fabric certified for free! Don't miss your chance.

January Fabric Update Carousel

Fabric Monthly Update - January 2026

Check out the January 2026 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.