Can SaveToSharepoint command send multiple attachments from one form? - InfoPath Dev
in

InfoPath Dev

Can SaveToSharepoint command send multiple attachments from one form?

Last post 09-30-2014 09:51 AM by CCBSFranco. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 09-30-2014 08:17 AM

    Can SaveToSharepoint command send multiple attachments from one form?

     Hey Everyone,

       I have a form with an attachment on it utilizing the SaveToSharepoint command. Works great, but I now need to load multiple attachments to the same directory at one time.

    I have researched some programmatic ways to do so but I would prefer to use qRules when possible. Is there a way to do exactly that?  Any suggestions are welcome.  

  • 09-30-2014 08:36 AM In reply to

    Re: Can SaveToSharepoint command send multiple attachments from one form?

    Hi - SaveToSharePoint works with repeating fields - is that what you are asking?

    Hilary Stoupa

  • 09-30-2014 08:52 AM In reply to

    Re: Can SaveToSharepoint command send multiple attachments from one form?

     Well I have it bound to a repeating group, but the attachments are not being sent to the sharepoint library. Is there an example available to demonstrate how to use this command with a repeating group?

     my current layout is as follows:

    my:Attachments  <- container

        my:Attachment <- Repeating Group

           my:pdf_attachment  <- Attachment Control bound to this field

              qRulesLink 

              qRulesFilename 

     

     

  • 09-30-2014 09:22 AM In reply to

    Re: Can SaveToSharepoint command send multiple attachments from one form?

    I know it works if the attachment field itself is repeating - are any of your files getting saved? Is there any error in the Error node?

    Hilary Stoupa

  • 09-30-2014 09:35 AM In reply to

    Re: Can SaveToSharepoint command send multiple attachments from one form?

     No errors. I literally get nothing.  I tried doing the repeating field, but the attachment control says it "Cannot store this data type". That's why I was trying the repeating group.  Is there an example using the Repeating field solution?>

  • 09-30-2014 09:42 AM In reply to

    Re: Can SaveToSharepoint command send multiple attachments from one form?

    I don't know of a sample offhand - but did you update the control on the form after changing the field to repeating? I mean, I'd assume if you changed the field to repeating, you'd get that error on the current attachment control.

    Hilary Stoupa

  • 09-30-2014 09:51 AM In reply to

    Re: Can SaveToSharepoint command send multiple attachments from one form?

     You're right, I figured it out. I just stuck it in a repeating section. Now both of them have been submitted perfectly. Thanks so much.

     

    So in summary for anyone else who needs to know this.

    Make the attachment field repeating. Drop that field into a repeating section on the form. Use the save to sharepoint command as before but add in /namexpath to your command. 

Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.