Rename file name (with field content extracted from a list of pdf files)

Good afternoon everyone.

I’m a novice in UiPath, but I’ve managed to do a few things already.

Specifically, I recently followed the tutorial shown in this YouTube video successfully https://www.youtube.com/watch?v=wfcQWVMWtNU. And the truth is that it works wonderfully. In this tutorial, Document Understanding activities are used to extract information from some predefined fields in a list of PDF documents stored in a Windows folder, store the information from those fields in a Data Table, and finally export the information from those fields to a Google Sheets document.

However, I am also trying to rename each document in that list of PDFs with the content of one of the fields extracted in each PDF file in the previous step.

I am aware that I could use the Rename File or Move File activity.
Likewise, I understand that, in order to use Rename or Move File activities, I should store the FilePath of each PDF document in a variable and associate it, in some way that I do not know, with the specific content of the field of the document that contains the name I want to give to each of the PDF files.

But I am quite lost on how to do this and how to follow this logic.
Additionally, I am not very skilled in the different types of variables aside from the basics like String, Boolean, Int32, Data Table, etc. I know the basics, but when they are more complex I am absolutely lost. And I think that for this case I should have a somewhat deeper understanding of these variables. If anyone on the forum knows how to guide me a bit, I would be very grateful.

If the path of the document is same except name you can pass the variable of the name which you wanted to change into the file path of the document.