I am trying to get the attachment url from a list item to a assign flexi task item(task form). I cannot use Call web services as my organization have blocked it for some reason.Also what is the use of having attachments as a Boolean Function instead of displaying the attachment name?
Solved! Go to Solution.
then the only possible way I can think of is not to use customized nintex task form, but rather default sharepoint's task form.
it's not very 'user friendly' but it gives you access to all the item's attachments.
how would you run js code from workflow?
I have one another idea, though.
however, it's based just on assumption...
attachment URL looks like (at least on SP2013):
<list URL>/Attachments/<Item ID>/<file name>
you can build list URL by tweaking available references like Item URL, Web URL, List name, etc.
item ID is available from item properties.
file name(s) could be read out of hidden FormData field
so using all those you could be able to build attachment link on your own.
but as I've said, it's based on an assumption how does att. link looks like and it need not work on all environments that way resp. might change with some SP patch.
That's a great suggestion. I could build a link but could you please tell me how to fetch the file name?. How do I find the hidden FormDataField.
'Form Data' hidden list field is Nintex' specific list field. it's created along with nintex form.
so once you create a form on your task list (ie. task form), you should find the filed listed among item properties.