<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Programmatically publishing a feature service from an existing one in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/programmatically-publishing-a-feature-service-from/m-p/783359#M848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I was finally able to get back to this and by inspecting the requests/responses in my browser dev tools while going through this using the AGOL interface I figured out what I think is the correct approach:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;fetch the json of the template feature service&amp;nbsp;which I store in a variable templateJson&lt;/LI&gt;&lt;LI&gt;call&amp;nbsp;&lt;SPAN&gt;isServiceNameAvailable and pass in &lt;SPAN style="color: #000000;"&gt;the&amp;nbsp;&lt;/SPAN&gt;proposed name of the new service:&amp;nbsp;&lt;/SPAN&gt;the response I get is&amp;nbsp;"{\"available\":true}" which I know it is.&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;call createService passing in&amp;nbsp;something like this json:&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"createParameters"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"currentVersion"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.currentVersion,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"serviceItemId"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.serviceItemId,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"serviceDescription"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;""&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"hasVersionedData"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;false,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"supportsDisconnectedEditing"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;false,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"hasStaticData"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;false,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"maxRecordCount"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.maxRecordCount,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"supportedQueryFormats"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"JSON"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"supportsVCSProjection"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.supportsVCSProjection,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"capabilities"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.capabilities,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"description"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;""&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"copyrightText"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;""&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"allowGeometryUpdates"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.allowGeometryUpdates,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"units"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.units,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"supportsAppend"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.supportsAppend,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"syncEnabled"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.syncEnabled,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"extractChangesCapabilities"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.extractChangesCapabilities,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"supportsApplyEditsWithGlobalIds"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.supportsApplyEditsWithGlobalIds,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"supportsOBACForAnonymousUsers"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.supportsOBACForAnonymousUsers,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"editorTrackingInfo"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.editorTrackingInfo,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"changeTrackingInfo"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.changeTrackingInfo,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"xssPreventionInfo"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.xssPreventionInfo,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"name"&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;SPAN style="color: #000000;"&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;proposed name of the new service&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;},&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"targetType"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"featureService"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"f"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"json"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"token"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;myT&lt;/SPAN&gt;oken&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;the response I get is: "{\"success\":false,\"error\":{\"message\":\"Service name 'null' already exists for 'Nxxxxxxxxxxxxxx1'\"},\"isView\":false}"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;So what value am I not sending in correctly and why does it tell me the name is available and then tell me otherwise?&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Thanks,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2018 14:38:17 GMT</pubDate>
    <dc:creator>KenGorton</dc:creator>
    <dc:date>2018-05-22T14:38:17Z</dc:date>
    <item>
      <title>Programmatically publishing a feature service from an existing one</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/programmatically-publishing-a-feature-service-from/m-p/783357#M846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you programmatically publishing a new feature service from an existing one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my app I would like to enable users with appropriate privileges to publish a new feature service by using an existing feature service url.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;use a network request which partially looks like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;NetworkRequest&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;createServiceNetworkRequest&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;method&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"POST"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;url&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;portalUrl&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"/sharing/rest/content/users/"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;username&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"/publish"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;responseType&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"json"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The body of the request&amp;nbsp;looks something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;{"access":"","description":"","f":"json","fileType":"featureService","itemid":"&lt;EM&gt;&amp;lt;&amp;lt;itemid of source feature&amp;nbsp;service&amp;gt;&amp;gt;&lt;/EM&gt;","name":"My New Feature Service","publishParameters":{"sourceUrl":"&lt;EM&gt;&amp;lt;&amp;lt;url to source feature service&amp;gt;&amp;gt;&lt;/EM&gt;},"snippet":"A new feature service","tags":"my tag","token":"&lt;EM&gt;&amp;lt;&amp;lt;my valid token&amp;gt;&amp;gt;&lt;/EM&gt;"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the response comes back as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"{\"error\":{\"code\":400,\"message\":\"Unable to publish item.\",\"details\":[\"'publishParameters' must be specified.\"]}}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clearly I am not forming the request correctly.&amp;nbsp;Or perhaps there is an entirely different means to this end? How should I be doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 14:59:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/programmatically-publishing-a-feature-service-from/m-p/783357#M846</guid>
      <dc:creator>KenGorton</dc:creator>
      <dc:date>2017-12-06T14:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically publishing a feature service from an existing one</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/programmatically-publishing-a-feature-service-from/m-p/783358#M847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you reproduce the same issue via the REST endpoint?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying the same request via PostMan.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be easier if we make sure the request is successful first directly via REST then construct it in QML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Erwin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 17:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/programmatically-publishing-a-feature-service-from/m-p/783358#M847</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2017-12-06T17:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically publishing a feature service from an existing one</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/programmatically-publishing-a-feature-service-from/m-p/783359#M848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I was finally able to get back to this and by inspecting the requests/responses in my browser dev tools while going through this using the AGOL interface I figured out what I think is the correct approach:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;fetch the json of the template feature service&amp;nbsp;which I store in a variable templateJson&lt;/LI&gt;&lt;LI&gt;call&amp;nbsp;&lt;SPAN&gt;isServiceNameAvailable and pass in &lt;SPAN style="color: #000000;"&gt;the&amp;nbsp;&lt;/SPAN&gt;proposed name of the new service:&amp;nbsp;&lt;/SPAN&gt;the response I get is&amp;nbsp;"{\"available\":true}" which I know it is.&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;call createService passing in&amp;nbsp;something like this json:&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"createParameters"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"currentVersion"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.currentVersion,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"serviceItemId"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.serviceItemId,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"serviceDescription"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;""&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"hasVersionedData"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;false,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"supportsDisconnectedEditing"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;false,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"hasStaticData"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;false,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"maxRecordCount"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.maxRecordCount,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"supportedQueryFormats"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"JSON"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"supportsVCSProjection"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.supportsVCSProjection,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"capabilities"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.capabilities,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"description"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;""&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"copyrightText"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;""&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"allowGeometryUpdates"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.allowGeometryUpdates,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"units"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.units,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"supportsAppend"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.supportsAppend,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"syncEnabled"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.syncEnabled,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"extractChangesCapabilities"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.extractChangesCapabilities,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"supportsApplyEditsWithGlobalIds"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.supportsApplyEditsWithGlobalIds,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"supportsOBACForAnonymousUsers"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.supportsOBACForAnonymousUsers,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"editorTrackingInfo"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.editorTrackingInfo,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"changeTrackingInfo"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.changeTrackingInfo,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"xssPreventionInfo"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;templateJson&lt;/SPAN&gt;.xssPreventionInfo,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"name"&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;SPAN style="color: #000000;"&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;proposed name of the new service&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;},&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"targetType"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"featureService"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"f"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"json"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"token"&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;myT&lt;/SPAN&gt;oken&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;the response I get is: "{\"success\":false,\"error\":{\"message\":\"Service name 'null' already exists for 'Nxxxxxxxxxxxxxx1'\"},\"isView\":false}"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;So what value am I not sending in correctly and why does it tell me the name is available and then tell me otherwise?&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Thanks,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 14:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/programmatically-publishing-a-feature-service-from/m-p/783359#M848</guid>
      <dc:creator>KenGorton</dc:creator>
      <dc:date>2018-05-22T14:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically publishing a feature service from an existing one</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/programmatically-publishing-a-feature-service-from/m-p/783360#M849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The request looks good. It looks like it received the service name as 'null' instead, as shown in the error message.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 22:12:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/programmatically-publishing-a-feature-service-from/m-p/783360#M849</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-05-29T22:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically publishing a feature service from an existing one</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/programmatically-publishing-a-feature-service-from/m-p/783361#M850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok It turned out to be a simple fix to what is probably a noob problem. I originally built the body parameter of the NetworkRequest as json and passed it in send(&lt;EM&gt;body&lt;/EM&gt;). This never gave me problems with other NetworkRequests but for each of those I construct body parameters of flat json. This one has nested json, but by calling send(JSON.stringify(&lt;EM&gt;body&lt;/EM&gt;)) it completes successfully.&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 23:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/programmatically-publishing-a-feature-service-from/m-p/783361#M850</guid>
      <dc:creator>KenGorton</dc:creator>
      <dc:date>2018-05-29T23:12:09Z</dc:date>
    </item>
  </channel>
</rss>

