Hello @Unknown-2795 ,
Thanks for the question and using MS Q&A platform.
As we understand the ask here is how to create a path like YYYYMMDDHH* ( eg ( 2022201005* ) , please do let us know if its not accurate.
I see that since you are already paramterizing the dataet , i think you are going in the right direction .
I was able to male it will in two steps .
Step 1 . Use the split function to read the parameter and split the string at '/' and then also replace the black which i see after the YYYY ( eg /2022 05 )
@split(replace(substring(pipeline().parameters.DateAsParameter,0,13),' ',''),'/')
Note the Split function always writes back to a variable type array ( see the screenshot below ) .
Step 2 .
Use the concatenate function
@markus.bohland@hotmail.de (substring(variables('var1')2,0,4),variables('var1')1,variables('var1')[0],substring(variables('var1')2,4,2),'*')
Note : I am using the variables('var1')2 twice to get the YYYY and also HH .
I did tested the solution for one of the date which you posted .
{
"name": "NewPath",
"value": "2022201005*"
Your path is
20221020051356
}
Please do let me if you have any queries.
Thanks
Himanshu
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators