TimeStamp - culture support - powershell

Answered

Comments

7 comments

  • Avatar
    Tatyana Falaleeva

    Hi Andrius,

    my best guess is that it is not supported when you use translate. So you might want to create a variable with the needed culture first, and then use it in the PowerShell action. This should work:



    Let me know if have any questions.

    0
    Comment actions Permalink
  • Avatar
    Andrius Sirtautas

    Hi Tatyana,

    But it works fine in some other action. I have just now tried to create message action and use [?Culture([*DATETIME_STAMP],"DAN")] as a message and it showed up without issues.

    It seems to be malfunctioning only in PowerShell action, which is very strange. In addition it has been working fine until today, but I don't know if it was because the day number was higher than month number or because I was on the previous version of Foxtrot.

    0
    Comment actions Permalink
  • Avatar
    Tatyana Falaleeva

    Hi Andrius,

    yes, it seems like the PowerShell action doesn't support (or partially support) Translate. I'll report this to Nintex and get back to you when I have more information.

    0
    Comment actions Permalink
  • Avatar
    Andrius Sirtautas

    Thanks

    0
    Comment actions Permalink
  • Avatar
    Mathias Balsløw

    Hi Andrius,

    We have received a response from the developers on this question:

    “This issue is not just affecting the culture formula but all formulas because they are quote wrapping the formula. It is probably needed for the PowerShell to behave correctly but quote wrapping a formula will ALWAYS give you wonky results. There is only one way that we can fix this issue and that is to completely rework the token engine. In the meantime please follow Tatyana's advice of using the formulas to variables and place the variables in the PowerShell script. That will work as expected.”

    This is the solutiom for now until they rework the token engine.

    0
    Comment actions Permalink
  • Avatar
    Andrius Sirtautas

    Hi Mathias,

    Thanks for the answer from the developers.

    One follow up question, does the quote wrapping only affect formulas or variables as well? Because until now I would only have the value in variable and have the quotes in the script, could that be an issue as well?

    0
    Comment actions Permalink
  • Avatar
    Mathias Balsløw

    Hi Andrius,

    Only formulas are affected, so you can use variables without issues.

    0
    Comment actions Permalink

Please sign in to leave a comment.