How to get pdf's from particular folder

Hi,

I have used Variable type - Array of string and Expression - Directory.GetFiles(“E:\GoogleSheet\GoogleSheet”)

But still showing this error

Main.xaml: Compiler error(s) encountered processing expression “Directory.GetFiles(“E:\GoogleSheet\GoogleSheet”)”.
‘Directory’ is ambiguous, imported from the namespaces or types ‘Microsoft.Graph, System.IO’.

Anyone know how to tackle this ?

Thanks

Hi @Muralikrishna_Surve ,

It seems that there are two namespaces which has the same Method Directory, for your case, you may need to include the System.IO along with the Directory.GetFiles like below :

System.IO.Directory.GetFiles("E:\GoogleSheet\GoogleSheet")
1 Like

Hi @Muralikrishna_Surve ,

Are you retrievng documents from your local folder right?

1 Like

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