Problems with list type variables

Hello!
Could you help me with the print problem?

arquivosDoDiaAtual = Directory.GetFiles(diretorio, “-999”).Where(Function(x) New FileInfo(x).CreationTime.Date = DateTime.Now.Date).ToList()

Error ERRO Erro de Validação Não é possível atribuir do tipo ‘System.Collections.Generic.List`1[System.String]’ para o tipo ‘System.String’ na atividade Assign ‘Assign’. Main.xaml

Hi @amanda.gondim

Create a variable with List of String Datatype and give the below expression,

- Assign -> List_Files = Directory.GetFiles(diretorio, "*-999*").Where(Function(x) New FileInfo(x).CreationTime.Date = DateTime.Now.Date).ToList()

Check the below image for better understanding,

Hope it helps!!

Hello!

I still have this error now

I was putting the wrong type, now it’s gone, thank you

2 Likes

First type System.Collections.Generic.List in the search bar.

Then select the String from the dropdown,
image

I hope you find the solution for your query, Make make my post as solution to close the loop…

Hope you understand!! @amanda.gondim