infopath startup parameter

E

Eric van der Niet

Good day,

Question: When i have an template in infopath, and i want to start the
template, is there a way to pass a startup parameter into Infopath. I want
to instert this parameter into a filter to directly show the record witch is
passed into crm like so: "template1.xsn id=123" or something like this. All
help is welcome!!

Eric van der Niet
 
P

Patrick Halstead [InfoPath MVP]

Hi Eric,

There are a couple solutions that I can think of:

1. Why not just do "infopath.exe /new form.xml" where the form.xml contains
the paramters for querying. The form.xml has to be a form created with yoru
solution (so that the URL/href are correct).

2. Use the /aggregate switch and specify the form and form template. For
example" infopath.exe /aggregate parameters.xml formtemplate.xsn". Define
custom import settings for parameters.xml (and parameters.xsd) so that the
form loads the data and then OnAfterImport calls your CRM query adapter.
This is cleaner than #1 but requires more code.

Good luck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top