Forms designer forms provision

rss

Posted by Андрей Тарутин - Aug 26 ’14 at 03:31

Below I asked about cross site lookup columns provision programmatically. What about forms provision? I know I can import and export forms. Can I do it programmatically?

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 9 years 8 months 16 days
    #1 by Dmitry Kozlov Aug 26 ’14 at 07:15

    Sure, you can use the following web service:

    /_vti_bin/formsdesigner/fdservice.svc

    Method called PublishForms:

    PublishForms(Guid listId, String contentTypeId, Guid groupId, Forms forms, string layout, out ServiceFault fault);

    If you don't use groups functionality, please, pass empty guid as groupId argument. Layout string is content of exported XFDS-file.

  • Андрей Тарутин
    Андрей Тарутин
    Member
    Member for: 8 years 9 months 13 days
    #2 by Андрей Тарутин Aug 26 ’14 at 09:40

    It's great, thank you!

  • Christian Heinrich
    Christian Heinrich
    Member
    Member for: 8 years 4 months 5 days
    #3 by Christian Heinrich Feb 2 ’15 at 04:42

    Hello,

    i tried calling the webservice, but unfortunatelly, Visual Studio cannot access the service for making a reference for it, neither I could directly call the service from browser, I only get a HTTP 400 ("Bad request") error when doing so!

    I hope you can help me with accessing the webservice or get rid of the error.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 9 years 8 months 16 days
    #4 by Dmitry Kozlov Feb 2 ’15 at 04:44

    [#3]: What version of SharePoint do you use: SP2013 or SP2010?

  • Christian Heinrich
    Christian Heinrich
    Member
    Member for: 8 years 4 months 5 days
    #5 by Christian Heinrich Feb 2 ’15 at 04:46

    [#4]: Its SharePoint 2010 Server Standard, and I use an extended trial license...

  • Christian Heinrich
    Christian Heinrich
    Member
    Member for: 8 years 4 months 5 days
    #6 by Christian Heinrich Feb 2 ’15 at 04:48

    [#4]: Oh sorry, I missed its the forum for SP2013 Forms Designer, big sorry! I hope you can help me anyway.

    And should I re-post in FD 2010 forum?

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 9 years 8 months 16 days
    #7 by Dmitry Kozlov Feb 2 ’15 at 04:48

    [#5]: OK, thanks. Please, try the following URL:

    /_vti_bin/formsdesigner/fdservice.svc/mex

  • Christian Heinrich
    Christian Heinrich
    Member
    Member for: 8 years 4 months 5 days
    #8 by Christian Heinrich Feb 2 ’15 at 04:55

    [#7]: Now it works! Totally forgot about that trick with WCF services ;) Thank you very much!

  • Андрей Тарутин
    Андрей Тарутин
    Member
    Member for: 8 years 9 months 13 days
    #9 by Андрей Тарутин Apr 1 ’15 at 05:08

    [#1]: Dmitry, what about automating export? Is there any method?

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 9 years 8 months 16 days
    #10 by Dmitry Kozlov Apr 1 ’15 at 06:01

    [#9]: Hi Andrew,

    What do you mean? Do you want to export a form with the help of the web service? You can retrieve layouts of forms from the site's properties (property bag):

    fd_{listID}_{contentTypeID}_{formType}
Displaying 1 to 10 of 16 messages
Previous12