Date Conversion - There is no implementation that accepts a parameter of type String Collection

Hello.

In a bot flow, I'm using a data action where I retrieve a Renewal Date in the format MM/DD/YYYY which I need to use to determine if an alert needs to be played to the caller.
When I try to convert the date that i'm receiving using an Update Data Action, I'm getting this error

'Month' at position 17 : There is no implementation that accepts a parameter of type String Collection. How should i approach this otherwise?

Flow.RenewalDate must be a string collection variable. I'm guessing you split the string "MM/DD/YYYY" on slashes; if so Flow.RenewalDate[0] would get the 1st element out of the collection.

Hi Melissa,

Yes, you are correct. The Flow.RenewalDate is a string collection.

Here is the approach that I took.

I used an update Data action to make it into a string

image

And then convert that string similarly to what you mentioned

Now, when I try to find the difference between the date that I have and today's date, I tried using the following

but I'm getting a different error - There is no implementation that accepts parameters of Strung, DateTime and DateTime.

DateTimeDiff only takes 2 datetime parameters. See Access Architect expression help - Genesys Cloud Resource Center on how to open expression help to see the documentation for an expression

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.