Hello everybody ! .
I am attaching different files in different items in a sharepoint list.

In another step, I update under certain conditions the details of that document (e.g. name). For that, I save in an excel the file folder, its name and need to save its ItemID. I know that the Item ID must be obtained through "obtain metadata of a file by path".

My problem is that I can't save the ItemID so that it can be used in "update item in sharepoint".

I don't know what I'm doing wrong or how I can resolve this. Can you please help me? Thanks
Get itemId of an attached item in sharepoint list , save it in an excel and then update an item in a list in sharepoint