Regarding String functions in Azure Data Factory Pipeline

Copper Contributor

I am using Set Variable activities. I am taking input as firstName, and trying to get output as Title case. Eg: input: samir

output: Samir

I have written code in pipeline expression builder as:

@concat(toUpper(substring(pipeline().parameters.firstName,0,1)),toLower(substring(pipeline().parameters.firstName,1,sub(length(pipeline().parameters.firstName),1))))
 
Can anyone give shorter approach?
0 Replies