function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tanushree Singh 11Tanushree Singh 11 

Passing value for ActivityDate (Task) in AWS Connect CTI Flow

We upgraded to the latest Amazon Connect CTI for Contact but we are facing issues with passing value for ActivityDate (Task) in the custom CTI Flow which we have built.

Please see attached picture for clarity.User-added imageCould anyone please help with fixing this?

Thanks in advance!
Tanushree
AnudeepAnudeep (Salesforce Developers) 
Hi Tanushree, 

Can you please advise what issue are you facing exactly?
TprinsenTprinsen
We're facing the same issue. We tried to pass Date.now() in the ActivityDate field, but the Due Date on the Task record is still blank. Does anyone know what value we can pass in the ActivityDate field so it will populate today's date?

User-added image

 
SudhaVishwakarmaSudhaVishwakarma
You might have got this resolved but I faced this issue today and I was able to resolve this by using 'Format a Date object' CTI block before creating task action and in the ActivityDate field, pass the output of 'Format a Date object' CTI block. 
User-added image

Also, if you are using 'Save (or Create) a Record' CTI block for creating task, you can add ActivityDate field in the fields list and set the value as $.actions.uid-47.results.formattedDate, here 'uid-47' is the id of the 'Format a Date object' CTI block in your flow and formattedDate is the formatted date returned from the 'Format a Date object' CTI block. It can be different in your flow.

Hope this helps.