How to pass Dynamic values in Gdrvie For each Files/Folders activity

Hi Everyone,

I have an issue here with passing a variable value in this loop to indicate the folder in gdrive. Please let me know how to pass the location in loop in SS I have passed the value of the lv_download variable but I want to know how to assign value to this variable


Thanks and Regards
Vineet Joshi

Hi @Vineet_Joshi

Click in + icon and select URL or ID

image

Now provide CurrentItem.ID in File to download field

The Downloaded File output will contains the downloaded information like LocalPath. Then you can use move file etc

Hi @rikulsilva, Thanks for the reply but I want to know to pass the value in Loop where it is pointing to location. In the ss, I have passed the value of the lv_download variable but I want to know how to assign value to this variable

Hi @Vineet_Joshi

I don’t know if I understand your requirements right

The For Each File/Folder already create a variable called CurrentItem holding information about each file

When you DownloadFile you can create a output variable to hold information about downloaded file. After Download File executed successfully, the variable have a property called LocalPath that refers to Full Path for the downloaded file.

Let me elaborate on the issue, check the image
image
in the highlighted portion where I have provided lv_download variable and its datatype is GDriveRemoteItem. I want to assign a value to this variable and I don’t know how to assign a value to this variable

I got it. Thank you for the clarification

You can use Get File/Folder before For Each File/Folder Activity like this

You can provide URL, ID, Full Path, Relative Path etc. The result will be a GDriveRemoteItem

So you can put one of this in information in config file, other variable, asset etc and pass to Get File/Folder

1 Like

thanks will try it and let you know

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