I'm using the document "qRules and SharePoint-Related Commands" and I'm following the instructions "How to use the SubmittoSharePointList command (pages 2-9). I've got as far as step 23 and I've been able to successfully add an entry to my SharePoint list and also modify that entry once it's been created. However, if I add an attachment to my form and submit, the attachment is not sent to SharePoint although qRules reports that the submit was executed successfully. On the screen dump that accompanies step 23 it shows a form with a file attached and the qRulesLink and qRulesFilename properties populated. These fields aren't populated in my form.
Step 23 states "Finally, in Preview mode, try submitting new list items by filling out the Title and the Value fields and clicking Submit. You should see that the item gets submitted to the SharePoint list it has been mapped to and returns the list item ID back in your form" I don't know what is meant by "Value fields" in this instruction but I assume it's referring to the "Information" field? Step 23 makes no mention of adding an attachment even though the screen dump clearly shows that this has been done. I'm confused. Should the submission of attachments work at this point or not? My mapping file contains entries for my:ID and my:attachments/my:attachmentsFile and my submit looks like this:
SubmitToSharePointList /submit=ShPSubmit /dsname=AddAttachment /xpath=my:attachments/my:attachmentFile /uniqueName=yes
When I created the mapping file and added the attachment field the following text appears in the SharePoint Column "The attachment field is not mapped to a SharePoint column - it is used by qRules to add attachments to your list items if you include the /dsname parameter. You must indicate an ID filed to also add attachments". What is meant by this? "Indicate an ID field" where? Does this mean that you need the ID of the list item before you can add an attachment to it - ie you can't create a new list item with an attachment in one submit - you have to first create the list item and then add an attachment to it once you know the ID?
I've tested the theory by first populating the Title and Information fields and clicking the Submit button. A list entry duly appears in the SharePoint list. I then went back to my form, modified the Title field, added an attachment and again clicked the Submit button In SharePoint I could see the Title was modified but no attachment was added to the list item. Of course it could be that I'm just too dumb to use qRules but I feel the instructions given in this example are vague and open to interpretation. :-)
Any help gratefully received.