Thank you so much for the explanation, the application was registered as confidential user scope, but I didn’t think about the actual user permissions.
I went to the permissions of the role assigned to the user to see that someone had changed them and folders were unticked! just unlucky I picked to test with folders.
Ticked to view the Folders and everything worked fine! ( I’ll change the data type of value.item.parentID as showing an error)
Thank you very much all for your contributions, really appreciate the support!
Best wishes!

