Comment uploader un document g?n?r? par PDF converter dans une liste de document Sharepoint

  • 23 September 2016
  • 0 replies
  • 1 view

Badge +7


 

Symptoms


Trying to save in PDF format a form URL into a SharePoint Library, using the Smart Object service "PDF Converter", Service Object "Create PDF From URL", we get the following error: File Not found
 

Diagnoses


This issue should appears if the "Smart Object File Property Name" is not correctly filled.

 

Resolution

You need to be aware that:
- The Input Mapping need to be filled with the SmartObject, Method and Property System Name (Not the Display Name)
- The URL String should be a K2 Form URL (Or other URL), But not a K2 View URL.



With more details, when you fill the "Input Mapping" for the Smart Object "PDF Converter", "Create PDF From URL" you need to fill:
URL String: Put here the URL of the Form (Not K2 View).
Smart Object Name : Put the system Name of the SmartObject linked to the Document Library where you want to save the PDF file (Example: portal_denallix_Shared_Documents)
Smart Object Method: Put the system Name of the Method Name for the corresponding Smart Object. (Example: UploadDocument)
Smart Object File Property Name: Put the system Name of the property "FILE" that accept the file to save for the corresponding Smart Object. (Example: FileLeafRef)
ID Property Name: Fill the systemName of the ID (Example: ID)
File Name: Fill the file name
Page Size: Fill the page size (Example: A4)
Page Orientation: Fill the page orientation (Example: Portrait)
URL Base: Fill the main URL (Example:https://K2.Denallix.com)

Warning: for the SmartObject information (linked to SharePoint like portal_denallix_Shared_Documents in our example), you need to put the system name, not the display name.
With the standard SmartObject Service Tester, you can get these values with a right click on the SmartObject and choose "View XML" and found the property "Name": it's the System Name. For Methods and properties, in this same screen (View XML),navigate in "Method (Collection)" and "Properties (Collection)".
For your information you can download the "SmartObject Service Tester++" on http://community.k2.com/t5/General-K2-Utilities/SmartObject-Service-Tester-plus-plus/ba-p/92426 . This tools will allow you to get the system name of a SmartObject, Method or Property only with a simple "CTRL+V" (According a setting in the Menu "Settings")

For more information about possible values in the PDF Converter "Create PDF From URL", please refer to the documentation:
http://help.k2.com/onlinehelp/K2Appit/UserGuide/current/default.htm#PDF_Converter_Service_Broker.html
and
http://help.k2.com/onlinehelp/K2Appit/UserGuide/current/default.htm#PDF_Control.html




 

0 replies

Be the first to reply!

Reply