Add attachments to secured feature service
My workflow uses GetLayer and ParseURL to get the token my site uses to connect to a secured map service.
With Add Features, using Url='https://<server>/arcgis/rest/services/<service>/FeatureServer/0' + $parseUrl1.queryString works fine.
With Add Attachment, this way of adding the token to the featurelayer url seems not to work. From the DevTools console in Chrome, I see that the activity tries to call https://<server>/arcgis/rest/services/<service>/FeatureServer/0?token=<token>/<objectid>/addAttachment. I.e. the "/<objectid>/addAttachment" is added to the token string.
I guess the correct url wold have been https://<server>/arcgis/rest/services/<service>/FeatureServer/0/<objectid>/addAttachment?token=<token>
Is there a way to do this correctly?
I miss the old way of handelling tokens in Geocortex Essentials Workflow...
-
Hi Jostein,
Thanks for the feedback. I am not currently aware of another method to achieve this. I've created an improvement in order to be able to do this and will let you know once it has been looked at.
Stefan
0 -
Would it be possible to pick an image with the WF5 filepicker, and send the FileRef-object to an "oldschool" serverside workflow that adds the attachment? What would be the datatype of the serverside workflow input argument to be able to receive a FileRef-object?
0 -
Stefan, can you clarify? Is it not possible to add attachments to a secured FS at this time??
0 -
@Zorba Conlen? That's correct, but we are currently looking into this issue and will hopefully have a fix for the next release.
@Jostein Svegården? This should be possible, but I have not tried it before. I believe speaking with a Support team member would be your best option to configure this successfully.
0 -
Ok, thanks for the info.?
0 -
Hi. Checking back about this. Is this issue resolved now? I'd really like to secure the service being used, but have not due to the need to create attachments. And if it is resolved, what method can be used to pass the token? Does the parseURL method, mentioned above, work?
Thanks
0
Please sign in to leave a comment.
Comments
6 comments