Introducing User Defined Functions preview for mapping data flows in ADF and Synapse
Published May 23 2022 10:57 AM 5,788 Views

We are excited to launch the public preview of user defined functions, a new feature for mapping data flows for Azure Synapse Analytics and Azure Data Factory. User defined functions allow users to define reusable functions that can be used across many mapping data flows. If you ever find yourself doing the same string manipulation, math calculations, or other complex logic several times this is a great use case for turning that into a user defined function.


User defined functions exist inside of a data flow library, this is a grouping of functions for whatever makes sense for your organization. This grouping could be based on related type of functions, business unit, or any other logical grouping that work for you. You can have multiple data flow libraries.



To get started with user defined functions, you must first create a data flow library. Navigate to the management page and then find data flow libraries under the author section.


After you create your data flow library you can add your user defined functions and can even add multiple arguments to make your functions more reusable.




After you add and save your data flow library and user defined functions you can then access these in mapping data flows anywhere you can use the expression builder.



Along with user defined functions, the reusable Flowlets feature allows for multiple tools to create reusable logic that can be shared across many transformations and patterns in mapping data flows. We are excited to see what type of patterns you will all be building!

Version history
Last update:
‎May 24 2022 12:15 PM
Updated by: