Forum Discussion
I guess you should add the absolute path of the directory where the file needs to be created(in the Target path field).
BR,
Spiro Taleski
- sdoscher3 years agoNew Contributor IIIThank you @Spiro_Taleski. Conceptually, I understand that, however, I am struggling with the syntax. Any insight you can offer on the below? This works (but only in top level of doc library): 
 ‘Mx_Manual_Ltrs_’ + Date.now().toLocaleDateTimeString({ timeZone: “EST”, format: “yyyy-MM-dd” }) + ‘.xlsx’This is what I tried for the absolute path to put the file in a subdirectory of the same library. 
 This does not work.
 ‘https://mln.sharepoint.com/:f:/r/sites/MxLettersTeamPeerReview/Shared%20Documents/Reports’+'Mx_Manual_Ltrs_’ + Date.now().toLocaleDateTimeString({ timeZone: “EST”, format: “yyyy-MM-dd” }) + ‘.xlsx’The error I get is: 
 Either source/target drive (%s) is not found in the tenant
 Resolution:
 verify if the drive name exists in the tenant.
 Reason:
 The drive name you have entered might not be available in the tenant.