GoogleDocs: How to create new file inside a folder

3 views
Skip to first unread message

tomsax

unread,
Feb 15, 2009, 12:56:50 PM2/15/09
to Google Data APIs Objective-C Client Library Discussion
How do I create a new Google document inside a folder?

I know how to build a query to get a list of documents in a folder.
From that I can extract a GDataEntryDocBase and replace the contents
of a document in the folder. But, when there is no matching document
and I just use the postLink URL from the GDataFeedDocList to post a
new GDataEntryStandardDoc, it creates the new document in the root,
not the folder.

I've looked at the various link URLs available from the
GDataFeedDocList, none of them seem to do the trick. I've looked at
the various properties on GDataEntryStandardDoc and GDataEntryDocBase
and nothing really stands out as a way to tell it what folder it
should go in.

Tom Saxton

Greg Robbins

unread,
Feb 15, 2009, 1:13:27 PM2/15/09
to gdata-objec...@googlegroups.com
You should be able to insert the document entry into the folder's feed.

Take a look at the messages of this thread,
http://groups.google.com/group/gdata-objectivec-client/browse_thread/thread/455464c459d96199

Tom Saxton

unread,
Feb 15, 2009, 3:17:35 PM2/15/09
to gdata-objec...@googlegroups.com
That did it! Thanks.

I'll publish some sample code when it's done.

Tom
Reply all
Reply to author
Forward
0 new messages