Logic Apps -- Dynamic function on (InitializeVariable)variables

ping zou 1 Reputation point
2022-03-19T17:12:31.337+00:00

Hi ,
I used recurrent trigger but ran into issue due to schedule time drift. I was suggesting to try sliding window trigger and using @triggerOutputs()?['windowStartTime']" to retrieve the trigger time.

The trigger I created requires trigger date and time and passed it to KSQL query.
This is before:
TriggerDate"@{formatDateTime(utcNow(),'yyyy-MM-dd')}"
TriggerTime  "@{formatDateTime(utcNow(),'HH:mm:ss')}"
but I'm not able to make
Not working  “@substring(@triggerOutputs()?['windowStartTime'],0,9)”
Not working  @substring(@{variables('test')},0,9) ==> here test is InitializeVariable type is string, value is "@triggerOutputs()?['windowStartTime']"
...
...
Can anybody help ?

Thanks,
Ping

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,548 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ping zou 1 Reputation point
    2022-03-19T17:29:26.637+00:00

    I'm able to figure it out after a lot of tries.

    Remove @ instead dynamic function works.
    work  “@substring(triggerOutputs()?['windowStartTime'],0,10)”
    work  @substring({variables('test')},0,10)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.