For SFTP, FileId is the path of the template file. For example, if you have a nested folder called personalfolder > folder1 that contains a file called test1.txt in it.
The FileId looks like this: personalfolder/folder1/test1.txt
Follow the same instruction as described above for all other file types.