I can see 2 options of doing this.
- Have a lookup activity to do this. The query could be something like this:
`
DECLARE @apl DATETIME;
SET @apl = getutcdate();
SELECT format(@apl , 'yyyy/Q') + CAST(DATEPART(QUARTER, @apl ) AS VARCHAR(10)) + format(@apl , '/MM/dd') AS FolderName;
Ouput: 2021/Q1/02/20`
- Use dynamic content to define the quarter logic in a variable and then construct your string using this.
Set Quarter Variable Logic:
@if(and( greaterOrEquals(int(formatDateTime(utcnow(), 'MM')), 1), lessOrEquals(int(formatDateTime(utcnow(), 'MM')), 3)), 'Q1', <Replicate the condition for rest of the quarters>)