Forms designer forms provision
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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):
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):
Code: Select all
fd_{listID}_{contentTypeID}_{formType}
-
- Posts: 10
- Joined: Mon Mar 10, 2014
Hi Dmitry,
is there any further documentation about the FDService and the property bag?
I want to know how tu use the property bag to export the forms and afterwards use the spservice to reimport it to another server.
Thank you in advance
is there any further documentation about the FDService and the property bag?
I want to know how tu use the property bag to export the forms and afterwards use the spservice to reimport it to another server.
Thank you in advance
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi Felix,
Please, note that starting from Forms Designer 3.0.1 you can export a site template with all forms and transfer it to another server:
http://spform.com/documentation/versions
Please, note that starting from Forms Designer 3.0.1 you can export a site template with all forms and transfer it to another server:
http://spform.com/documentation/versions
-
- Posts: 10
- Joined: Mon Mar 10, 2014
Hi Dmitry, thank you for this link. We already exporting out dev site and importing it to the test and live site. But when there is already production data in the live system and we want to update the forms it is realy time consuming to update 40+ forms by hand.
So I thought about exporting the forms with powershell (read propertybag) and import it to an new site with the help of your webservice. Do you have any documentation about importing a set of forms to a sharepoint site?
So I thought about exporting the forms with powershell (read propertybag) and import it to an new site with the help of your webservice. Do you have any documentation about importing a set of forms to a sharepoint site?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
We do not have other documentation on this service but this is just a WCF-service with the description:
/_vti_bin/FormsDesigner/FDService.svc/mex?wsdl
So, you can generate a proxy with the help of ServiceModel Metadata Utility Tool or directly from Visual Studio:
https://msdn.microsoft.com/en-us/librar ... .110).aspx
And use it to communicate with the service.
You can export forms either in Forms Designer (Export button on the ribbon) or directly from the site's property bag:
https://lixuan0125.wordpress.com/2013/1 ... g-by-csom/
The keys are built in accordance with the following patterns:
You can find them in SharePoint Designer:
Open the site -> Home -> Site Options (button on the ribbon)
/_vti_bin/FormsDesigner/FDService.svc/mex?wsdl
So, you can generate a proxy with the help of ServiceModel Metadata Utility Tool or directly from Visual Studio:
https://msdn.microsoft.com/en-us/librar ... .110).aspx
And use it to communicate with the service.
You can export forms either in Forms Designer (Export button on the ribbon) or directly from the site's property bag:
https://lixuan0125.wordpress.com/2013/1 ... g-by-csom/
The keys are built in accordance with the following patterns:
Code: Select all
fd_{list name}_{content type name}_{form type} (FD 3.x )
fd_{list id}_{content type id}_{form type} (FD 2.x )
Open the site -> Home -> Site Options (button on the ribbon)
-
- Posts: 10
- Joined: Mon Mar 10, 2014
Thank you for this information. Can you tell me how I have to handle the fd_forms and fd_groups Properties?
Hi Everyone,
I am using SharePoint 2013 on premise version with PlumSail form Designer 3.1.4.0.
I need to import PlumSail form from "Item_New.xfds" file in SharePoint list using web service and PowerShell.
As mentioned in below post, using web service one can publish PlumSail form in SharePoint.
But my question is about How can we consume this service to import/publish forms using PowerShell?
I can able to copy form design from one list to another using SharePoint site Property bags. But my list forms are not updated.
PowerShell Code I used for this is:
Please provide steps to export and import these forms using PowerShell.
Any help would be appreciated!
I am using SharePoint 2013 on premise version with PlumSail form Designer 3.1.4.0.
I need to import PlumSail form from "Item_New.xfds" file in SharePoint list using web service and PowerShell.
As mentioned in below post, using web service one can publish PlumSail form in SharePoint.
But my question is about How can we consume this service to import/publish forms using PowerShell?
I can able to copy form design from one list to another using SharePoint site Property bags. But my list forms are not updated.
PowerShell Code I used for this is:
Code: Select all
$sourceValue = $rootWeb.AllProperties["fd_A_Item_New"]
$rootWeb.AllProperties["fd_B_Item_New"] = $sourceValue;
$rootWeb.Update();
$rootWeb.Properties.Update();
Any help would be appreciated!
Dmitry Kozlov wrote: ↑26 Aug 2014Sure, 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.
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Hello, Dikesh!
Please, check out this documentation on Powershell - https://docs.microsoft.com/en-us/powers ... rshell-5.1
Please, check out this documentation on Powershell - https://docs.microsoft.com/en-us/powers ... rshell-5.1
Cheers
Hello Nikita,
Thanks for quick response.
I have tried to use web service proxy from the URL provided by you.
I have one query about passing "forms type" parameter in PublishForms method using PowerShell. Please see my code chunk as below:
Here, I am confused for passing 4th parameter for form type.
Any help would be appreciated!
Thanks for quick response.
I have tried to use web service proxy from the URL provided by you.
I have one query about passing "forms type" parameter in PublishForms method using PowerShell. Please see my code chunk as below:
Here, I am confused for passing 4th parameter for form type.
Code: Select all
$serviceUrl = $sourceUrl + "/_vti_bin/FormsDesigner/FDService.svc/mex?wsdl"
$srv = New-WebServiceProxy -Uri $serviceUrl -UseDefaultCredential -Namespace "myTest" -Class "FormsDesigner"
$result = "false"
$resultSp = "false"
$listID = [Guid]"30d508cf-2dca-4bc7-bc47-82fd416c702e";
$groupID = [Guid] "00000000-0000-0000-0000-000000000000";
$namespace = $srv.getType().namespace;
$formType = New-Object ($namespace + ".Forms.New");
$srv.PublishForms($listID,"0x0100E7B031CC88FA184FBADC93080FB6165B",$groupID,[Forms]$formType, "Form_Design_code");
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests