Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Can I pass a real timestamp(a variable having real timestamp value) under Oauth

    Posted 04-10-2025 12:37
    No replies, thread closed.

    Hello Team,

    Please let me know, If Its possible to pass real time value(present timestamp) under OAuth as a field Name and Value.(using variable)? if yes, plz help me with the syntax,

    or do I need to pass the timestamp variable as a input parameter with each data action.

    Thanks.


    #API/Integrations

    ------------------------------
    Deva

    ------------------------------


  • 2.  RE: Can I pass a real timestamp(a variable having real timestamp value) under Oauth
    Best Answer

    Posted 04-10-2025 16:42
    No replies, thread closed.

    Hello Deva,

    I found the following info from this thread:

    There are 2 ways to get the time.  The GetCurrentDateTimeUtc() expression returns the current datetime in UTC.  Architect also has a built-in variable Flow.StartDateTimeUtc; this returns the datetime in UTC when the flow started.  The difference is Flow.StartDateTimeUtc is the same during the entire call, whereas GetCurrentDateTimeUtc() will change as the call continues.  You need to decide which value you want.

    The ToString expression can write out a datetime, but the format it uses is "yyyy-mm-ddThh:mm:ss.000Z".  Since that doesn't match the format you want, you will need to use the Day, Month, and Year expressions to write your own string value.  For this example I use a datetime variable Task.dateTimeVar, you will set it as either of the values in the paragraph above.
    Create a string variable Task.day with this value: 

    If(Day(Task.dateTimeVar) < 10, "0"+ToString(Day(Task.dateTimeVar)), ToString(Day(Task.dateTimeVar)))​

    Create a string variable Task.month with this value:

    If(Month(Task.dateTimeVar) < 10, "0"+ToString(Month(Task.dateTimeVar)), ToString(Month(Task.dateTimeVar)))​

    Create a string variable Task.year with this value:

    ToString(Year(Task.dateTimeVar))​

    Create a string variable Task.dateString with this value:

    Append(Task.day, "-", Task.month, "-", Task.year)​



    ------------------------------
    Jason Kleitz
    Online Community Manager/Moderator
    ------------------------------



  • 3.  RE: Can I pass a real timestamp(a variable having real timestamp value) under Oauth

    Posted 04-11-2025 10:18
    Edited by Devanand Gawande 04-11-2025 10:20
    No replies, thread closed.

    Hello Jason,

    Thanks a lot for your reply.  actually I want to pass present timestamp(a variable having present time value(UTC)) under Webservices Integration>>FieldName>>Value. (so whatever data action will use that integration, no need to pass the variable each time from the architect.  Please let me know if its possible? Thanks.

    below is the screenshot for your ref.



    ------------------------------
    Deva
    ------------------------------