Forms designer forms provision
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 KozlovAdminMember for: 9 years 8 months 16 days
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.
-
Андрей ТарутинMemberMember for: 8 years 9 months 13 days
It's great, thank you!
-
Christian HeinrichMemberMember for: 8 years 4 months 5 days
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 KozlovAdminMember for: 9 years 8 months 16 days
[#3]: What version of SharePoint do you use: SP2013 or SP2010?
-
Christian HeinrichMemberMember for: 8 years 4 months 5 days
[#4]: Its SharePoint 2010 Server Standard, and I use an extended trial license...
-
Christian HeinrichMemberMember for: 8 years 4 months 5 days
[#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 KozlovAdminMember for: 9 years 8 months 16 days
[#5]: OK, thanks. Please, try the following URL:
/_vti_bin/formsdesigner/fdservice.svc/mex
-
Christian HeinrichMemberMember for: 8 years 4 months 5 days
[#7]: Now it works! Totally forgot about that trick with WCF services ;) Thank you very much!
-
Андрей ТарутинMemberMember for: 8 years 9 months 13 days
[#1]: Dmitry, what about automating export? Is there any method?
-
Dmitry KozlovAdminMember for: 9 years 8 months 16 days
[#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}