Updating a secondary datasource to a Sharepoint list via infopath form rules

Using SharePoint 2010 and InfoPath 2010 I created a form that prior to submission it gets an integer value from a separate SharePoint list via a secondary datasource.  Just before the rule that submits the form to a document folder via the
main datasource I increment the integer value and try to write it back to the secondary datasource I got it from.  I know that I have the correct value.  That is, it is reading from the data source the correct integer information and it is incrementing
it in the form but when it writes the value back to the same column in the same secondary datasource it doesn't give any indication that it didn't work.  But when I look at the list of the secondary data source I see that the integer value is
not updated.

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]

Similar Messages

  • 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]

  • How to update an existing item in a sharepoint list using the WSS adapter for Biztalk

    Is there a way that a record in SP list be updated using WSS adapter in biztalk ?
    BizTalk 2013 and SP 2013 ..
    Regards
    Ritu Raj
    When you see answers and helpful posts,
    please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    A ListItem has its own unique row id so in all likelihood, an insert with the same data will result in a new list entry. The Lists Web Service however, has an UpdateListItem method which will take an update request. [refer
    http://msdn.microsoft.com/en-us/library/office/websvclists.lists.updatelistitems(v=office.15).aspx ]
    There is another note in the conference (marked answered) to your List Item Update problem. Probably worth a try too. [refer
    http://social.msdn.microsoft.com/Forums/en-US/bee8f6c6-3259-4764-bafa-6689f5fd6ec9/how-to-update-an-existing-item-in-a-sharepoint-list-using-the-wss-adapter-for-biztalk?forum=biztalkgeneral ]
    Regards.

  • Save SharePoint list item view form as a word document

    I have a view form in SharePoint 2013, and I am trying to create a button that will export the form into a MS word document.
    So really I am trying save a SharePoint form to a word file. Is that possible?

    yes below are links for reference:
    http://www.c-sharpcorner.com/uploadfile/Roji.Joy/export-sharepoint-list-items-to-word-document/
    https://www.youtube.com/watch?v=tPFKuA8yW4E
    https://social.technet.microsoft.com/Forums/office/en-US/9e38ed97-5156-448d-af71-cf5e949535d6/how-can-i-export-sharepoint-list-item-form-view-to-word-or-pdf?forum=sharepointcustomizationprevious
    http://www.ehow.com/how_5923152_export-sharepoint-list-word-document.html
    http://sharepoint.stackexchange.com/questions/129277/save-sharepoint-list-item-view-form-as-a-word-document
    Please mark as answer if you find it useful else vote for it if it is close to answer..happy sharepointing

  • Issue adding to a sharepoint list via WCF

    I've written a console app that parses an excel spreadsheet and places the information into a sharepoint list for Donation Requests (I'm doing this because the Excel spreadsheet is so bad that I couldn't upload it directly).  I'm using WCF to connect
    to my site, but when I go to save changes I get a System.Data.Services.Client.DataServicesClientException: Not Found error.
    Here is the code I am using to do the upload:
    /// <summary>
    /// This will add a donation request item to the dev site with the information in the current row
    /// </summary>
    /// <param name="row">The current row that we are working with</param>
    /// <param name="currentRowID">the id of the current row we are working with</param>
    private static void addToDev(DataRow row, string currentRowID)
    //create the data context
    DevIntranet.TeamSiteDataContext dc = new DevIntranet.TeamSiteDataContext(new Uri("http://devintranet.choctawnation.com/_vti/bin/ListData.svc/"));
    dc.Credentials = System.Net.CredentialCache.DefaultCredentials;
    var donationsSource = dc.DonationRequests;
    dc.AddToDonationRequests(
    new DonationRequestsItem
    Title = string.Empty,
    RequestDate = Convert.ToDateTime(row["mel"].ToString()),
    FormOfRequest = row["Form of Request"].ToString(),
    NameOfIndividualOrGroup = row["Name of Individual or Group"].ToString(),
    DescrptionOfRequest = row["Description of Request"].ToString(),
    //AmountRequested = Convert.ToDouble( row["Amount_Requested"].ToString()),
    County = row["County"].ToString(),
    ActionTaken = row["Action Taken"].ToString(),
    Status = row["Status"].ToString(),
    ProcessedDate = Convert.ToDateTime (row["Processed Date"].ToString()),
    //DonatedAmount = Convert.ToDouble (row["Amount_Donated"].ToString()),
    CheckRequest = row["Ck# Request by"].ToString(),
    CheckDate = Convert.ToDateTime(row["Ck# Date"].ToString()),
    CheckNumber = row["Ck# No#"].ToString (),
    Notes = "<p><em>Added to SharePoint from Excel File on " + DateAndTime.Now.ToShortDateString () + "</em></p>",
    Created = Convert.ToDateTime (row["mel"].ToString())
    //try to save
    try
    dc.SaveChanges();
    Console.WriteLine("Row ID " + currentRowID + " added to SharePoint.");
    catch (Exception ex)
    Console.WriteLine("Error uploading to SharePoint: Row ID: " +
    currentRowID + "." + Environment.NewLine +
    "Error given: " + ex.InnerException .ToString());

    Hi David,
    Thanks for your sharing.
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jerry Guo
    TechNet Community Support

  • Customising a SharePoint list content type form - "Manage multiple list items with this form"

    I have designed a form for a content type on an existing SharePoint list.  When I ran the initial wizard, I selected
    Manage multiple list items with this form which is great, exactly what I want.
    But, there are some columns in this content type that I do not want repeating and have them moved them outside of the Repeating Section but I am getting the below error.  I can't seem to find a way to create a new non-repeating group though.  Any
    advice on how to do this?

    *Bump*

  • In Sharepoint browser enabled Infopath form Date & Date Time Pickers throws Script errors using https url.

    HI All,
    I am working in Sharepoint 2010 browser enabled Infopath form and is have two Infopath date picker controls. The form is working fine in normal "http://" url. while the same site we are using opening with "https://" and select the date
    from picker then we got the script errors.
    There are no scripts used in this site. It is by default sharepoint 2010 publishing site.
    One more i checked with "Date Time picker" Infopath control also but same issue.
    Below are the errors for reference:-
    Any help is appreciated..!
    Thanks.

    Thanks Linda, for your quick response.
    The  Minimal
    Download strategy  feature is not available
    in SharePoint 2010 and start.js file is also not available.
    can you please suggest the exact location of "start.js"
    file in SharePoint 2010 then i go further or please suggest other way to find or debug the process.

  • How to have repeating columns for SharePoint list

    Hi
    I am working on SharePoint 2013 environment and trying to customize a SharePoint list using infopath form.
    Have a list called "Future Actions" and users need to submit their actions. An user can submit
    n number of Planned actions and every user will submit different number of actions.
    Columns:
    1. Title                                   TEXT
    2. Month                                 Choice
    3. Planned Actions                   TEXT
    I want to capture user's actions in the same form, such that he would have option to expand the
    Planned actions column to add n number of Actions.
    Simply, For one Month, user should be able to define all actions in one form. and the number of planned actions will vary from user to user.
    Pls suggest

    Hi,
    The OOTB can't provide a feature to meet your requirement.
    Here is a similar thread for your reference:
    http://social.msdn.microsoft.com/Forums/en-US/e475cc7f-435f-4e6e-b579-c74311d67b4e/creating-repeating-columns-in-sharepoint-2010-list
    In SharePoint 2013, we can also customize a special field type using client-side rendering.
    http://msdn.microsoft.com/en-us/library/office/jj220061(v=office.15).aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Open a SharePoint List item in Modal Pop up in SP 2013 fails after you filter or sort the list

    Sorry for the long post. This has been killing me. I had this script working perfectly fine in SharePoint 2010 (online) and basically i have a source custom list (list A) with a hyperlink column and a Destination List with say title and my name.
    Source List (list A) looks like this with these 2 columns
    Title    Test Link
    A         Link 1
    B         Link 2 
    C         Link 3
    Each of these links link to the actual list item in the destination list, so for example, link 1 is/sites/2013DevSite/Lists/Destination%20List/EditForm.aspx?ID=1
    So basically i want anytime the Link are clicked that point to another list's item to open in a modal dialog and the script below worked perfectly fine in SharePoint 2010 (online)
    <script language="javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
    <script language ="javascript" type="text/javascript">   
    jQuery(document).ready(function() {
    jQuery('a[href*="EditForm.aspx"]').each(function (i, e) {
    // Store the A tag's current href in a variable
    var currentHref = jQuery(e).attr('href');
    jQuery(e).attr({
    'href': 'javascript:void(0);', 
    // Use the stored href as argument for the ShowInModal functions parameter.
    'onclick': 'ShowInModal("' + currentHref + '");'
    function ShowInModal(href) {
    SP.UI.ModalDialog.showModalDialog({title: "Edit Item", url: href});    
    </script>
    All it does is find the href tags for that particular value Editform.aspx and the pop modal works in SP 2010 online. So the site page is designed in such a way there is a content editor web part with the reference to this javascript file and the sharepoint
    list is right beneath it and this worked perfectly opening in modal windows in SP 2010.
    Since migration to 2013, this is what exactly happens
    1.) when you come to the site page, the modal works,
    2.) If you filter or sort on say the Title or Test Link column in Source list (lets say you select the Value A), the script does not fire at all, if i hover over the hyperlink, the who hyperlink is shown and does not open the hyperlink in the modal pop up.
    - This is important because i want to be able to sort on a particular item...
    Could someone please let me know what am i doing wrong and why is this not working when i sort the list. Thanks for all the help.
    Once again i am trying to open a sharepoint list item in Sharepoint 2013 from another list using Jquery

    A ListItem has its own unique row id so in all likelihood, an insert with the same data will result in a new list entry. The Lists Web Service however, has an UpdateListItem method which will take an update request. [refer
    http://msdn.microsoft.com/en-us/library/office/websvclists.lists.updatelistitems(v=office.15).aspx ]
    There is another note in the conference (marked answered) to your List Item Update problem. Probably worth a try too. [refer
    http://social.msdn.microsoft.com/Forums/en-US/bee8f6c6-3259-4764-bafa-6689f5fd6ec9/how-to-update-an-existing-item-in-a-sharepoint-list-using-the-wss-adapter-for-biztalk?forum=biztalkgeneral ]
    Regards.

  • "File Not Found" Error after Restoring Sharepoint List

    Hello,
    I restored a Sharepoint List via Powershell and all seemed to work fine. The Import-Log sais 0 Warnings and 0 Errors.
    When I access the List now i can see all the Items, but when i click a Item to access it, i get a "File Not Found"-Error.
    May the Alternate Access Mappings be the Problem? The List is restored from another Sharepoint-Farm that was accessed by different URLs.
    What can i do to access the Items? Thanks for your help!

    How was this list moved? Using export-import? Do you still have the old list in the old environment? Can you turn off dialogs on the list so that we can tell where exactly it is navigating to? Can you also install fiddler to see the web hops?
    Pranav Sharma
    SharePoint Consultant, Portal Solutions

  • Unable to change and re-publish existing InfoPath forms on External SharePoint lists (SharePoint 2013 Enterprise Online and On Premise)

    Hi everybody,
    I really reached the limit of my diagnostic ability... ...please help me!!!!
    I subscribed an Online Sharepoint 2013 Development site to try Business Connectivity Services and InfoPath forms. Using SharePoint Designer 2013 I successfully created an external content type
    and an external list, including InfoPath forms.
    When I use InfoPath Designer 2013 to customize the forms I can open and change them without any problems, but when I try to publish the changes I made I get the following error:
    "An error has occurred. The form template has been published to the server but it can only be opened using InfoPath filler"
    (please note that I changed just an existing label, without adding any new control or new fields).
    If I try to do exactly the same things but with an normal SharePoint list everything works like a charm!
    I noted that the main difference between the internal/external list is that with the internal list the publishing path in InfoPath 2013 is something like:
    https://<sharepointsite>/lists/<listname>
     whereas for the external list is something like the following:
     https://<sharepointsite>/lists/<listname>/item/template.xsn
    Trying to overcome the problem I installed SharePoint 2013 Enterprise on premise using the VM from the Windows Azure Gallery. In this case the error I get when I try to publish with InfoPath
    Designer 2013 is the following:
     The following URL is not valid:
    http://<sharepointsite>/lists/<listname>/item/template.xsn
    and of course everything works fine with InfoPath Designer 2013 and regular SharePoint lists.
    Even if I believe the problem is in general with external list and InfoPath, my external list is based on a the "Product" table from the "AdventureWorks2012" sample database
    installed on SQL Azure and connected to SharePoint via Business Connectivity Services.
    A big
    thanks in advance to anyone who is able to
    provide useful information to solve the problem!!!
    Regards,
    Fabio

    Hi Folks,
    Same issue here for any external list. We've migrated from 2010 to 2013 - it used to be fine on 2010. 2013 seems hang after 'getting site column information' then nothing. All effected users can quick publish to regular sharepoint lists, but cannot to external
    lists.
    In our situation we are trying to quick publish to sites using the 2010 look and feel in a 2013 environment. using SharePoint Designer 2013 and InfoPath 2013.
    Rich
    Rich Burdes

  • Using InfoPath to make a form that filters multiple rows alphabetically into their according SharePoint Lists.

    Hello,
    I would like to create a form in InfoPath that looks similar to something you would see in excel, by that mean that I am able to enter multiple lines of data. After I submit the form, the data will be sorted/filtered by the first letter of the brand name
    into their appropriate list in SharePoint.
    JBL (InfoPath Form) -> (Sharepoint List) "J"
    Bose (InfoPath Form) -> (SharePoint List) "B"
    Lexicon (InfoPath Form) -> (SharePoint List) "L"
    Etc...
    I was wondering how I would achieve this? Workflow?
    Thanks in advance,
    Luke

    1. kudos on having JBL be both the first record of sample data, and also the initials of all three records :)
    2. within SP, you can create a calculated column for the first character in the string (LEFT(col,1))... you may need to promote the field from IP into the list.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How to submit a multiple-selection list box in an Infopath Sharepoint form as multiple entries on a Sharepoint list?

    I would like to be able to submit an Infopath form with a multiple selection list box in Sharepoint as multiple entries on a Sharepoint list.
    For example, a user has to complete the following fields:
    First Name:
    Last Name:
    Favorite Color (can select more than one):
    [] Blue
    [] Red
    [] Yellow
    [] Green
    If the user picks blue AND red and submits the form, the Sharepoint list would feature TWO entries, both with their first and last names, but with different colors in the "Favorite Color" column.
    Please let me know if there is a way to do this. Any guidance would be helpful!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Creating an order form from a sharepoint list

    Hello- I need to create an order form that shows my entire sharepoint list and allows the user to select the items he/she wants and put qty's next to them. Is this possible?
    I see how to add the list into my form as a dropdown allowing me to select each on individually but i would like them all to be displayed.
    I am using infopath 2007.
    thanks - Casey

    Hello,
    You first need to create custom list in sharepoint (if not created yet) and save data into it. Later you need to add a data connection in form to connect your list with infopath form.
    Now you can bind the data with dropwdown or bind with repeating table to show all (just drag and drop the connection on form). later you can add one checkbox in repeating table so user can select the data whatever they want.
    Refer this link to drag and drop data connection as repeating table:
    http://www.enjoysharepoint.com/Articles/Details/show-sharepoint-list-data-in-repeating-table-in-infopath-2010-377.aspx#.U3rnLSjcCHM
    Refer this for checkbox:
    http://www.bizsupportonline.net/infopath2010/how-to-check-all-check-boxes-repeating-table-infopath-2010.htm
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Error when trying to pulish an InfoPath form to SharePoint 2010 list

    I am getting this error:
    The SOAP response indicates that an error occurred on the server:
    Server was unable to process request.--->  Object reference not set to an instance of an object.
    Any ideas on why I can't publish form and how I might fix this?
    Laura

    Hi Laura,
    According to your description, my understanding is that you got an error when you published your InfoPath form.
    I aggreed with Sangha said, please check the "Design Checker" to check if there are any errors in the form.
    If yes, I suggest you remove the related fields and check if the form can be published successfully.
    There are two similar posts, please check if they are useful for you:
    https://kerdirks.wordpress.com/2012/10/18/infopath-2010-form-soap-response-error-on-server/
    http://sharepoint.stackexchange.com/questions/61464/what-does-nullreferenceexception-mean-in-my-sharepoint-log-my-infopath-form-wo
    If this issue still exists, please feel free to reply.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for