ConvertTimeZone in Logic App

Vivek Komarla Bhaskar 956 Reputation points
2023-02-15T12:38:48.9666667+00:00

Hi,

Inside Logic App:

In my set variable of type string, I am trying to use the following expression. What is the problem here? I get the following error message. The same expression works perfectly for setting the filename in my create blob action.

formatDateTime(convertTimeZone(utcNow(),'UTC','GMT Standard Time'),'yyyy-MM-dd')

Screenshot 2023-02-15 at 12.38.12 pm

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

Accepted answer
  1. MayankBargali-MSFT 70,941 Reputation points Moderator
    2023-02-17T04:58:52.07+00:00

    @Vivek Komarla Bhaskar Thanks for reaching out. Your function expression looks good and as per the error message looks like the value for destination inside the convertTimeZone is not correct string. I will suggest you edit the expression again and manually type it again and confirm if you still observe the same issue. There is a chance that when you copy paste the content then there may be special characters that are added to the actual content, and it would not be visible as the simple text. That is the reason you are not able to see when you may have reviewed the expression and in the error message. I was able to reproduce the issue with the same error if I add special character to my content GMT Standard Time.

    Let me know if you need any assistance.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.