Select to view content in your preferred language

Creating a new folder in AGS Online using the iOS SDK

1520
2
Jump to solution
05-26-2014 10:24 AM
StephenThornton
Deactivated User
Hi Guys,

I've been experimenting with the iOS SDK and have been able to successfully add a new web map. However I would like to create a new folder that I can place new web maps inside.

I've looked at creating an AGSPortalFolder object (supplying the 'title' only) and passing it into the "addPortalItem:withContentParams:toFolder:" method on the AGSPortal object with no luck.

Am I on the right track or is there another way in which to create new folders?

Many Thanks,

Steve
0 Kudos
1 Solution

Accepted Solutions
DiveshGoyal
Esri Regular Contributor
Steve,

Unfortunately, the SDK does not support creating new folders at this time. This is something that we could look into adding for an upcoming release.

For the moment, you will have to directly invoke AGOL's REST API to create a folder
http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Folder/02r300000074000000/

For convenience, you can use the SDK's AGSJSONRequestOperation class. Be sure to set a credential on it so that it can connect to your AGOL account.

View solution in original post

0 Kudos
2 Replies
DiveshGoyal
Esri Regular Contributor
Steve,

Unfortunately, the SDK does not support creating new folders at this time. This is something that we could look into adding for an upcoming release.

For the moment, you will have to directly invoke AGOL's REST API to create a folder
http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Folder/02r300000074000000/

For convenience, you can use the SDK's AGSJSONRequestOperation class. Be sure to set a credential on it so that it can connect to your AGOL account.
0 Kudos
StephenThornton
Deactivated User
Ok no worries. Thanks for the info 🙂
0 Kudos