Name File using SaveToSharePoint command - InfoPath Dev
in

InfoPath Dev

Name File using SaveToSharePoint command

Last post 03-02-2012 03:22 PM by Hilary Stoupa. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-02-2012 02:36 PM

    Name File using SaveToSharePoint command

    We are using the SaveToSharePoint command with the /name=filename command and it is working great.  However, I would like to name the file using a value of a specific field.  Is this possible?

  • 03-02-2012 02:40 PM In reply to

    Re: Name File using SaveToSharePoint command

    Absolutely. You are probably currently just setting the value of the Command field like this:

    SaveToSharePoint /url= .... etc

    But instead, click the fx button and use a formula:

    concat("SaveToSharePoint /url= ... etc /name=", pickYourFieldWithTheFieldPicker)

    So the string passed to the Command field will include your field value for the name parameter. Does that make sense?

     

    Hilary Stoupa

  • 03-02-2012 03:15 PM In reply to

    Re: Name File using SaveToSharePoint command

    Excellent, that worked!
  • 03-02-2012 03:22 PM In reply to

    Re: Name File using SaveToSharePoint command

    So, here's the thing to remember with qRules - whatever text you pass into the Command field is what the code is going to try to do. The Command field doesn't care if you use field values, or formulas or what-have-you, as long as it can make sense of the text. For testing purposes, you can set another field in your form to the same thing as you are trying to set the Command field (or use a dialog box) so you can see what your result is.

    This means any Command can be either typed into the Value field in the rule dialog, or can be created using a concat formula to allow you to pass in values from the form, or ... do some math ... or whatever you need to be able to tell the Command.

    Hilary Stoupa

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