Referencing External Data in an InfoPath Form

Hi all,
I am using SharePoint 2013, Designer 2013 and InfoPath 2013.
I am working on a a system that allows us to book a field support analyst for a particular site at my company on a given day. I have built a custom list that holds all the data and an InfoPath Form form logging and editing requests and this works perfectly.
At Present the site location field is free text which means that we have the potential for two people to call the same site 2 different things. I toyed with the idea of having a separate list in SP with all the site locations on but we would need to keep updating
this as new offices are opened and closed, so I took the view that I would link the site into our external support system that is the master list for all offices. This is an SQL DB. I have been able to set up the External Content Type and successfully create
an External Read Only List in the Site Collection that is displaying all the info I want. I have even been able to create an InfoPath Form from this list for reviewing the full site information.
The next stage was to add a drop down list to the request page that looks up the site name in the External List and records the choice in the request list. I can create the column in the Request List that looks up the site name in the external list but I
can add this to my InfoPath form for editing.
I am so close but I cant get there...
Thanks in advance for your assistance.
Rich

Thanks for the reply. I am trying to call data from an external SQL DB but save it to an SP List. i.e. my site list is in SQL DB but the appointment is in an SP list

Similar Messages

  • Cannot modify Data Connection in Infopath form as the original webservice server no longer exists

    Hi,
    I am going to modify one of the data connections in my infopath form, but it throws me an error. The original server no longer exists. I know that I can change the manifest.xsf and replace the old server with the new server name. And when I pulled up the
    Data Connections list, I can see all the connection sources have been changed to the new server. But  I am still getting this error:
    Could not open "http://<oldeserver>/<webservices.asmx>?WSLD
    I don't seems to see a reference to the webservices.asmx, where will that be?
    Please advice. Your help would be greatly appreciated!
    Where is this reference came from? 

    I think I found out where the reference is, it is actually in the udcx file. It is weird though, the one on Central admin has been updated with the new server name, but not the one in the local data connection library, and it is actually referencing the
    local data connection library instead of the one in Central Admin.
    Thanks.

  • Calculate the difference between two dates times in infopath form 2013

    Hi,
    I have an infopath 2013 form that contains three fields:
    2 date time and the 3rd contains the difference between the two in hours
    how I can make the difference between the two so that the display will be like this:
    Date Time1           08/21/2014           22:00 
    Date Time2           08/22/2014           1:00
    Diff Field                                             3:00

    Hi,
    Please refer to the following article which matches your requirement exactly.
    Calculate the difference between two date picker controls in InfoPath using rules and formulas - no code!
    Please mark it answered, if your problem resolved.

  • Browser based InfoPath form deployed on a Claims based Web Application calling a Secure Web Service via Data Connection

    hi,
    We have a Browser based InfoPath Form deployed on a Claims based Web Application. We are tyring to call WCF Services that are secure using Certificates via the Data Connections on Infopath Form.
    Earlier we used to get the Data in BCS External List via the WCF Services and the Data Connections used to get the Data from the BCS External List. Due to Performance Issues, we want to remove the BCS External List and straightaway call the secure WCF Services
    via the Data Connections.
    Have anyone implemented this scenario.
    Thanks
    Ram
    Thanks Ram

    Hi Ram,
    As these are browser based InfoPath forms, you have two options 
    1) Deploy as sandboxed forms
    In this case you have to create a secure store application id and then set the credentials for that account.
    You then have to export the data connection to Data connections library and modify the .udcx file to utilize the newly created secure store application id.
    This may sometime give issues related to sandboxed code service. You have to give permissions on the secure store for the user account which the sandboxed code service is running.
    2) Deploy as administrator approved forms
    This would be ideal way of doing things as you have full control over the web request if you write code behind InfoPath forms.
    3) Deploy as a Hybrid solution
    a) Write a full trust proxy solutions (extend SPProxyOperation class and override execute method) and make the web request call inside this and return the response
    b) Invoke above operation from the sandboxed InfoPath form's code behind by SPUtility.RegisteredProxyOperation(four part assembly name, operation args)
    Hope this helps.
    Thanks,
    Srikanth

  • How to migrate sharepoint 2010 infopath form to sharepoint online.

    how to migrate SharePoint 2010 infopath form to SharePoint online.

    Hi Partha,
    You use powershell script to migrate infopath forms from SP 2010 to SP Online. But you need to be careful about external connections used in infopath forms(web service connections etc.) because they might required to be changed. So, for data connections,
    use of Data Connection Library is a preferable way or you can write a powershell script to update the data connections also.
    You can find the sample script from the below url:
    https://drive.google.com/file/d/0B_mYrpgMRd3IbHdpZkNBLVNhd1k/view?usp=sharing
    Best Regards,
    Brij K

  • Data connection, static PDF form, and presence

    I've created a form with a dynamically populated dropdown of names. To get it populated, one step was to save it as a static PDF form. Then it worked perfectly. However, I soon found that my scripts to show hide elements no longer worked. Certain Action Builder actions still worked, but not show/hide. So I created a simple test form, and show/hide worked normally. I've tried both formcalc and javascript. So is it true that a form can be dynamic and all actions work or the form can be static and connect to a database, but a form cannot be both data-driven and change presence?

    Thank you for this information, which may be true in theory, but my forms show that only the static form can show external data, and the static form can't change presence at runtime, although other actions (like reset all fields) will work. On the other hand, in a dynamic form, I can change presence, but data will not appear in the dynamic dropdown, which is grabbing names from SQL Server. Can you try an experiment yourself? Try a data connection and changing presence in the same form, and let me know what happens.

  • Using web service to update rows on InfoPath form

    I managed to get a proof of concept working where I can read data from a web service to populate a table on my InfoPath form. I have found information about how to use a web service to "submit" data from the InfoPath form. But what if I want to
    update an existing record from the read that I displayed on the InfoPath form?
    I have some simple methods in my web service for "read employees", "insert employee", and "update employee". Nothing really fancy. I think I can manage to tell InfoPath to use "insert employee" for the submit command,
    but I'm not entirely sure how it knows exactly what to submit. I have no idea how to tell InfoPath to use the "update employee" method if a user edits a record, nor, what button to push to do that.
    I have a feeling that "submit" is supposed to cover both "insert" and "update" but I can't find anything to confirm that. If that is true, I am not sure how to handle responses from multiple calls if the user tries to update
    or add multiple rows at a time.
    If "submit" does handle both "insert" and "update" then is best practice to make the web method intelligent enough to tell the difference?

    Given that IP has been killed off by Microsoft, and that you are still in the dev process, I might not recommend its use. Consider BCS instead.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs
    Looks interesting but it appears to be not an option on our server. The business data connectivity metadata store is offline.

  • How to get Filtered external list data into infopath form

    Hello , 
    Below I am adding issue about filtered external list .
    I Created a external list which contains columns like projectuid and project name , I am filtering the list by adding a custom webpart and after filtering it displays only the filtered rows .
    I created a infopath form and i am using the same external list as data source . I am using the data source for an drop down list/ text box  .My requirement is to display only the filtered values in the drop down list but its displaying all the values
    present is in the external list .
    Is there any possibility to get only the filtered values into the drop down list ? 
    Indresh

    Actually, after thinking about it some more, you can filter the dropdown in InfoPath, but it depends on what you're filtering and whether that changes. If you want to filter it, you can go to the "control properties," then under "Entries," you can click
    the button on the right. Then "filter data" in the popup.
    As far as sending the information to a new list, you would have to use the "content organizer" under "manage site features" in your "site actions," or you would have to create a workflow in SP Designer.
    cameron rautmann

  • Using External Item Picker in Infopath From, error: not allowed to save the data

    1. I have created the infopath form with External item picker field.
    2. Deployed as a form library3. field works fine, but error occured while save
    the form.4. Got an error from the correlationid as below
    State Service StateManager.GetState() Locked data (d96998c8-4460-4cb2-80fa-beffb196e2ad)
    Micro Trace Micro Trace Tags: 0 agb9s,12 bm1k,0 bm0t,0 m02x,7 8kfs
    Can you tell what is the issue ? Also when I created form infopath form from the sharepoint designer for the list using that external content type, it shows this data type is not allowed in the infopath form.

    Hello,
    What version of IP form you are using?
    BTW worth to read supported data type by infopath for ECT:
    https://msdn.microsoft.com/en-us/library/office/ff621597%28v=office.14%29.aspx
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Is possible to capture the SP username of who is making submission of the data from an InfoPath 2010 form?

    Hi all,
    Does anyone know how to capture the SP username of who is making submission of the data from an InfoPath 2010 form? I looking to avoid the user need to type extra information like username/ manager name, etc; and then use code behind to be doing validation
    before to push that data to an sql server.
    Any suggestion , book reference , link is acceptable 
    thanks in advance
    CRISTINA& MICROSOFT Forum

    Hi Cristina,
    Please check the following article with using web service UserProfileService.asmx to get the current user profile in InfoPath code behind and use the validating event to do some complex validation, it should help.
    http://blogs.msdn.com/b/infopath/archive/2007/03/07/get-the-user-profile-through-moss-web-services.aspx
    http://codesupport.wordpress.com/2010/04/05/sharepoints-userprofileservices-getuserprofilebyname-method/
    http://www.bizsupportonline.net/infopath2007/infopath-basics-3-ways-validate-data-infopath.htm
    http://henry-chong.com/2010/12/infopath-validation-gotcha/
    Thanks
    Daniel Yang
    TechNet Community Support

  • Upload Excel data to Sharepoint list VIA infopath form

    Hi,
    I'll try to explain the process of what I want to do first.
    1. In Excel
    I have an exceldocument (XLS, XLSX or XLSM) with 4 named columns and a named worksheet saved locally on my computer.
    I want to upload this data into preferably a custom list in sharepoint but it needs to run via a infopath template first.
    2. In Infopath
    The Infopath template will prompt the user to specify values in 2 additional fields.
    After giving input to these fields user may browse for the locally stored excel document and upload the document.
    In the same infopath template a dynamic array should be visible containing 6 columns (4 from excel + 2 from headerlevel of template) and the amount of rows based on the number of rows from excelsheet.
    At the end of template a submit button is found for uploading the entire array into sharepoint custom list.
    Is this possible to do at all?
    NOTE! End user should not have to save the excelsheet as XML file nor do a XML mapping.
    Infopath should, perhaps with help of VBA read excelsheet and transfer data to correct destination in sharepoint on it self.
    Looking forward to your reply

    Hi Jonas,
    You can attach your Excel doucment into InfoPath form and send InfoPath form to a custom web service. Then you can parse the Excel data and combine the Excel data and additional fields into SharePoint list in the customized  web service.
    For more information, you can have a look at the thread:
    http://dandeng.blogspot.com/2012/03/submit-infopath-form-data-to-web.html
    http://www.codeproject.com/Articles/88547/Submit-entire-InfoPath-form-to-web-service
    https://social.msdn.microsoft.com/Forums/office/en-US/590f1e78-5c08-47bd-8af4-9709102b568d/webservice-to-send-attachments-in-infopath-form-to-different-location?forum=sharepointcustomization
    https://msdn.microsoft.com/en-us/library/office/gg575571.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Amount of data has exceeded maximum limit - Infopath form

    Hello, I am having a problem on O365 concerning an Infopath form.
    The warning goes like this : " The amount of data that was returned by a data connection has exceeded the maximum limit that was configured by the server administrator" 
    Solutions exist for other version of Sharepoint/Infopath. I see in SharePoint 2013, this value is 1500 kilobytes by default
    and we can increase the maximum size of that. However, in SharePoint Online, it cannot be changed.
    Can you guys please help? 
    Thanking you in advance.
    Regards,
    Nite

    Hi Nite,
    You should ask this question in the Office365 forums:
    http://community.office365.com/
    But as this question has been asked before, it is not possible to change the limit in O365. Please see this thread:
    http://community.office365.com/en-us/f/154/t/252391.aspx
    Nico Martens
    SharePoint/Office365/Azure Consultant

  • How to move data connections with SOAP web service in different environments in InfoPath Forms 2010

    Hello,
    I've an InfoPath Form where I've around 10 SOAP web service data connections. They are calling a custom web service for a custom business process. The web service URL has a query string parameter which identifies whether it's a Test web service or the Production
    one. The web service URL looks like this:
    http://server/webservice/wsdl?targetURI=testSPRead (for the Test environment)
    http://server/webservice/wsdl?targetURI=ProdSPRead (for the Production environment)
    When I develop the form in Dev environment, I use the Test web service URL and save the data connection as UDCX files in the data connection library. After completing the development, when I deploy this Form in Production, I update the URL in the UDCX
    file in the Production data connection library, but when I run the Form in Production, it throws error 'Error occurred in calling the web service'. After doing more research, when I extracted the XSN file and opened Manifest.xsf file in Notepad, I found the
    references of 'testSPRead' parameter.
    So, in the UDCX file the web service URL is '/targetURI=ProdSPRead' but in the Manifest.xsf file, there is a reference of Test web service parameter which is 'testSPRead' and that's why it's throwing error.
    For testing purpose, I updated the Manifest.xsf file and replaced all the occurrences of 'testSPRead' to 'ProdSPRead' and also updated all the relevant files of the data connections (like XML, XSF etc.) and saved the Manifest.xsf as Form.xsn and deployed
    in Prod and it worked.
    The question is - is this the right way of doing it? There should be a simple method in such cases where web service has conditional parameter to identify the Test and Production web service.
    Does somebody know what is the right way of doing it? I also thought of adding 'double' data connections - one set of Test and another set of Production and call them by identifying the current SharePointServerRootURL, but that's a lot of work. I've 10 web
    service data connections in my Form and in that case I'll be having 20 data connections and setting their parameters in different Rules is too much work.
    Please advise. It's very important for me!
    Thanks in advance.
    Ashish

    Thanks for your response Hemendra!
    I hope Microsoft improves this thing in subsequent patches of InfoPath 2010 or InfoPath 2013 because I don't think this is a very special requirement. This is failing the purpose of having UDCX files for data connections. Why the WSDL's parameter value
    is being written in the Manifest.xsf and other XSF and XML files. InfoPath should always refer the URL and parameters from the UDCX files.
    --Ashish

  • How to submit InfoPath form data to multiple SharePoint lists at one time?

    Hi,
    I'm looking for a way to submit certain data in InfoPath form to separate SharePoint lists at the same time. I have a form that has two views with many data in them. I want to keep these data in separate SharePoint list besides keeping them in the XML. I know that you can submit to a form library using SharePoint document library data connection, but I'm not sure if you can use several data connections for submitting data to multiple SharePoint lists. Is it only possible to do using code? If yes, can anyone show a sample. I have never coded in InfoPath, though I used C# a lot in .Net.
    Thank you!Regards,
    R.D.M.

    This is an old thread but I tripped over a codeless method to do this with OOB InfoPath 2010 and SP 2010. 
    Assuming your main InfoPath form is published to a document library with the promoted fields that you want to see.
      Publish your form to a new document library to capture the secondary data fields that you want separated out.
    Using the Publishing Wizard do the following:
    Go to – File then Publish
    Select SharePoint Server “ Publish form to a SharePoint Library”
    Enter location of your SharePoint or InfoPath Forms Services Site: 
    accept the default in this field from the first published event
    Next screen, keep the default or change it, Form Library, Site Content Type or Admin Approved
    Next screen, What do you want to do?
    Create a new form library
    Add new document library name and description
    Next screen, Remove all promoted fields not applicable to the new library and add all of the ones you want to see data for.
    Click Next and Publish
    Come back into the form: If you don’t have buttons added directly to the form to submit or update, add them.
    Create a new Action rule on the button
    Label the rule to keep it straight
    Condition, occurs when button clicked
    Add action, Submit data
    Use data connection to the second library created
    Create a second new Action rule on the same button
    Label the rule to keep it straight
    Condition, occurs when button clicked
    Add action, Submit data
    Use original data connection to the library
    Then you can add another action to close the form or do whatever you need.
    Republish the form to both libraries to set the template for both.
    File – Publish – SharePoint Server
    Select Secondary library from drop down follow the rest of the prompts
    Follow step 5a again, select Primary library from drop down, Add back in all of the promoted fields needed for the primary library and follow the prompts.
    DOCUMENT YOUR FORM WELL FOR MAINTENANCE
    Special considerations, your primary library needs a unique ID to reference in your secondary library.
    Your secondary library will need a unique ID that is not related to the primary if you are going to store multiple records for a single primary library reference. 
    Example: One form, multiple updates.

  • Infopath form taking long time to load sql data

    In infopath form having with multple views. In one of the view SQL Data will be loaded on selection of dropdown to repeating table.  If it is lessthan 1000 items its working, if it is morethan 1500 items form will hanging for 15-20 mins. 
    Form is developed by C# code.  Can anyone suggest to relsolve this issue.  Thanks in Advance.

    Hello,
    I also had same problem while querying connection via rule so i gave chance to code and query executes within 2-5 seconds which was taking 10-15 mins earlier. Try this
    AdoQueryConnection myAdoQueryConnection = (AdoQueryConnection)(this.DataConnections["SQL Con"]);
    myAdoQueryConnection.Command = "select * from table1 where col1 = " + "'" + InstallationID + "'";
    myAdoQueryConnection.Timeout = 60;
    myAdoQueryConnection.Execute();
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • Remote app keeps forgeting Apple TV

    Good afternoon! Apple's Remote app 4.2.1 on my iPhone 6 running iOS 8.1.3 keeps forgetting my AppleTV 2 running Apple TV Software 7.0.3. When I open the app, AppleTV isn't an option (other iTunes libraries on my network do appear though). I can get m

  • Document  not updated in consolidation(urgent issue)

    Hi all actually we are posted one  document in 2006 at the time its generated accounting document.but its not generated in consolidation document.now any option to generate the    only consolidation document. Thanks&Regards Satish 09892421477

  • Need to create a MIME file to FTP to customer

    Hi Experts, I have a requirement to generate a MIME file that will consist of am XML file and 1 to many attachments.  This file will then be sent via FTP to a client.  Searching within the SCN community has proven very difficult because I am NOT look

  • Ipad 2 Broken Screen

    I have two ipad2's both with broken screens. Only the glass is broken and I have so far there has been no issue with the software. I am wondering what apple does with ipad such as mine, the cost and what I get. I am also wondering if they offer somet

  • HT1338 Mine is Mac OS X 10.5.8, how can I upgrade to 10.6?

    Mine is Mac OS X 10.5.8, how can I upgrade to 10.6?