Forms designer forms provision
- Андрей Тарутин
- Posts: 13
- Joined: Mon Aug 25, 2014
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
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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.
/_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.
- Christian Heinrich
- Posts: 5
- Joined: Tue Feb 03, 2015
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.
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
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
What version of SharePoint do you use: SP2013 or SP2010?
- Christian Heinrich
- Posts: 5
- Joined: Tue Feb 03, 2015
Its SharePoint 2010 Server Standard, and I use an extended trial license...
- Christian Heinrich
- Posts: 5
- Joined: Tue Feb 03, 2015
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?
And should I re-post in FD 2010 forum?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
OK, thanks. Please, try the following URL:
/_vti_bin/formsdesigner/fdservice.svc/mex
/_vti_bin/formsdesigner/fdservice.svc/mex
- Christian Heinrich
- Posts: 5
- Joined: Tue Feb 03, 2015
Now it works! Totally forgot about that trick with WCF services Thank you very much!
- Андрей Тарутин
- Posts: 13
- Joined: Mon Aug 25, 2014
Dmitry, what about automating export? Is there any method?
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests