Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I'm trying to use the new library variables to dynamically call a workspace / notebook. The standard syntax to call dymanic library variable looks something like this, with the actual notebook name at the end:
Solved! Go to Solution.
Hi @krhacke
As of now, Microsoft has not officially announced that this feature will be included in the General Availability (GA) release either. Library variables must be referenced statically in the pipeline at design time, and expressions like @concat()or indexing into pipeline().library variables dynamically are not evaluated in a way that resolves the actual variable content.
If supporting dynamic referencing of library variables is important for your use case, it’s recommended to submit feedback via Microsoft Fabric Ideas so that it can be considered for future updates.
Thank You!
Hi @krhacke
Thank you for reaching out to the Microsoft Fabric Community Forum.
We understand you are encountering an issue iwth dynamic libarary variables. As Library Variables are designed to store reusable configurations at the workspace level and are referenced using @pipeline().libraryVariables.<variable_name>.
Dynamic Concatenation (@concat('pipeline().libraryVariables.',json(pipeline().parameters.TaskStep.Notebook).NotebookId))may not work as expected because the expression engine treats it as a literal string or fails to resolve the GUID.
Library variables are resolved at runtime, but the dynamic construction of the variable name may not be fully supported in the current preview, as the engine might not dereference the concatenated string to the actual library variable.
Dynamic key resolution (e.g., pipeline().libraryVariables[variables('v_notebook')]) isn't supported in the current preview, requiring hardcoded keys instead.
To resolve this, consider a workaround that aligns with ADF’s current capabilities while achieve the goal of dynamically selecting a notebook based on a JSON parameter.
This approach ensures explicit mapping of the notebook ID to the library variable, avoiding dynamic concatenation issues.
If this response resolves your query, kindly mark it as Accepted Solution to help other community members. A Kudos is also appreciated if you found the response helpful.
Thank You!
Hi v-karpurapud - thank you for your response!
You mentioned that dynamic construction of library variables isn't supported in the current preview. Is this something that will be included in the GA release?
We currently hardcode workspace and notebook guids in each of our source systems' notebook json workbenches. However, as these change from dev to test to prod workspaces, my client feels it's burdonsome to have to update these at each step in each workbench. It would be great to be able to set these name / guid values in a library variable once, then use just the name for each in the json.
Hi @krhacke
As of now, Microsoft has not officially announced that this feature will be included in the General Availability (GA) release either. Library variables must be referenced statically in the pipeline at design time, and expressions like @concat()or indexing into pipeline().library variables dynamically are not evaluated in a way that resolves the actual variable content.
If supporting dynamic referencing of library variables is important for your use case, it’s recommended to submit feedback via Microsoft Fabric Ideas so that it can be considered for future updates.
Thank You!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Fabric update to learn about new features.