I am using the Google drive api plugin.
With the “Upload” and “Rename” actions, I can get the ID of the target file.
However, in the “Add File to Folder” action, I cannot get the ID of the target file.
After moving a file to the specified folder, I need its file ID to manipulate the file.
Is it possible to get the ID of the file moved by the “Add File to Folder” action?
Please let me know if there is a way.
Hello @T.Naganuma
Thank you for your question.
We are currently investigating your request, and I will get back to you once there is an update
Please let me know if you have any other questions.
Have a nice day
Hi Kirill!
Thank you for your reply.
The “Google Drive API Plugin” is working almost as expected.
This plugin has helped me a lot.
However, I’m having trouble getting the ID after moving the file.
If there is a better way, please let me know.
Kirill, I’m sorry.
My boss seems to think I can solve this problem soon.
He asked me to confirm and report the time it would take to resolve.
Please answer if possible.
I’m sorry for the rude question.
Thank you for your patience @T.Naganuma
To move the file to a folder you need to know the Folder ID and the file ID. After moving the file to the folder, the file ID does not change. Here are a couple of ways you can get the ID after moving the file:
First option: If you use the ID(dynamically) from a repeating group, after moving the file you can save the ID using a custom state and then retrieve the ID through a state.
Second option: Use the “Children list action” to show the files from the folder, you will have to enter the folder ID and then it will display a list of all the files in it. There you can find the ID and the names of the files.
I would also recommend you to check out the documentation of the plugin to see all the actions and plugin’s data calls available: Google Drive Plugin - Zeroqode Documentation
Please let me know if you have any other questions.
Have a nice day
Hi,Kirill.
Thank you for your answer.
I understand that moving a file manually does not change the ID.
However, when I use the “Add File to Folder action” from Workflow to move a file, the ID changes.
Is this because there is a problem with my “Add File to Folder action” settings?
However, I was able to get the ID of the moved file using the “Children list action”.
I was so fixated on getting the IDs from the “Add File to Folder action” response that I didn’t think of any other way.
Thank you for the good advice.
The “Add file to folder” action should not change the file ID, unless it is changed manually in the workflow or add the file to folder action settings.
Glad to hear that you have found the solution and that showing the ID through the “children list” action works for you
Please let me know if you have any other questions.
Take care.