Recently I had a project that required data collected via Nintex Mobile and stored in a SharePoint list to be pushed to an on-premise ArcGIS geodatabase for use in mapping services. It turns out it is possible to add features to a web map's Feature Service via a Nintex Workflow's Web Request control POST method. However, the documentation and procedure for setting it up are difficult if not impossible to find, vary by ArcGIS server version, and do not pertain to Nintex's specific needs, so I thought I'd write this solution up to share and hopefully make this process easier for other developers.
After hours of coming up with generic unspecified 500 and 401 errors, the solution ended up being a problem of URL and post body syntax. I figured it out working in conjunction with an ESRI developer. It is simple to implement, and works like a charm. I must also give credit to Vadim Tabakman's blog post Nintex Workflow - Talking to Esri ArcGIS UDAs for setting me off on the right track.
Before I outline the solution, here's a bit of initial information about the setup:
Solution:
That's it! If your post is successful, you'll see the following results returned:
"Response status code: 200 Response content: {"addResults":[{"objectId":####,"globalId":"{globalID}","success":true}]}"
Here's an example:
Hope someone else finds this saves them some time one day.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.