javascript Google scripts create a document within a folder -


i have tried countless techniques, not able

docslist.createfile('example file', 'example file contents'); 

to create google document file. creates plain text file. have tried adding mime type. not work- think may bug in google. whatever file seems open in "viewer"

however there workaround, seems simple, sure there way using?

doc = documentapp.create('document name'); 

i cant folder.

thanks help.

yes possible. either try using driveapp (not docslist) create directly in folder. if wont work, create doc, add folder , remove root.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -