Hi @Tony Johansson Here is the expression that captures trigger time and converts to IST 24 hour format. Similar way, try to use as per your time zone. (replace expressions replace all the : and " " to _)
@replace(replace(formatDateTime(convertFromUtc(pipeline().TriggerTime,'India Standard Time'),'yyyy-MM-dd HH:mm:ss:ffffff'),' ','_'),':','_')
Output: (assigned this expression to a variable - triggertime)
{
"name": "triggertime",
"value": "2023-04-22_17_56_09_216040"
}
In your case, are you using the expression inside a foreach loop and copy activity? I see item().name being used, so wondering your use case. Please let us know if you need any further help here. Thanks, Suba