programmatically change the URL of secondary data connection in Infopath form RRS feed

  • Question

  • Hi all,

    I have an InfoPath form which have url of one sharepoint site in its secondary data connection(submit) , now i am uploading this infopath form to another SharePoint site by C# code so i want to add a code  by which i can replace the old url to current site's library url in the submit data connection for your reference the screen sho of data connection wizard as:

    Like I want to change the url of Document Librry with new site url as: http://sprptsite2/formlibrary2 by code in C#.

    I searched on google and in blogs for this but unable to find a solution so please suggest me for it.



    Wednesday, October 17, 2012 10:56 AM

All replies

  • Hi Avanish Tomar, 

     Did you get any solution; I am also looking for the solution. Share me the solution if you have done.

    Friday, November 16, 2012 11:02 AM
  • Hi Ravi,

    Sorry,I didn't find any solution for that but I think it is possible...so i am investigating on this but

    Another option which i created by creating a project in C# where i am updating my UDCX file and then uploading it to sharepoint site so with the help of this you don't need to update and upload UDCX file manually.

    If you want this, then i can provide it to you. 



    Monday, November 19, 2012 12:34 PM
  • Hi Avinash,

    I am looking for the same solution for the problem you have mentioned above.

    I want to update the UDCX programatically using C#. Could you please share the solution/code to me.

    It would be a great help. Thank you.

    Please share the solution to my mail id : seshagiri.vissa@optum.com

    Friday, May 15, 2015 1:38 PM