The mobile version of Exact Synergy Enterprise uses the DocumentFlow web service for document functionality. This webservice provides better service to support security, customisation and enable document functionality in the mobile app. The following operations are available:
The information in this document is based on product update 266.
Not applicable.
The DocumentFlow web service uses the following targets:
These are used as follows:
All service calls start with the endpoint services/Exact.DocumentFlow.REST.svc, are of type POST and have the following headers:
The OpenNew service can be called to create a default document with prefilled values based on the document type. It will also fill up the required fields with properties so the document can be initialized for use. Details of this service as follows:
URL: http://<synergyUrl>/services/Exact.DocumentFlow.REST.svc/OpenNew
Body:
{"InputMessage":{"DocumentType":29}}
DocumentType here is the action input parameter. Based on this value, the available fields, default values, etc. are returned.
Output: Expected return is the pre-filled document or an exception in case user is not allowed to create the document with that particular document type. The following structure is expected:
The RetrieveAll service can be called to retrieve properties of an existing document. It returns a list of possible actions, such as 'Save', 'Draft', 'Checkin', 'Checkout', etc. It also returns whether the user has rights to view the document. Details of this service as follows:
URL: http://<synergyUrl>/services/Exact.DocumentFlow.REST.svc/RetrieveAll
{"InputMessage":{"DocumentID":"575ef7ab-cf75-4bbd-899d-e2394ee5dd40"}}
DocumentID is the ID number of the document to be retrieved.
Output: Expected return is the document information. The following structure is expected:
The Action service can be used together with OpenNew and RetrieveAll. Details of this service as follows:
URL: http://<synergyUrl>/services/Exact.DocumentFlow.REST.svc/Action
Body: This starts with
{"Name": "<Action>","InputMessage":[]}
Based on the Action used, different parameters are added. For example, if a Save operation is used, the following structure is added in the array:
{"Name": "<FieldName","Value": "<Value"}
As a result, the complete structure of the above example can be:
{"Name": "Save","InputMessage":[{"Name": "ID","DataType": "Guid","Value": "<Value"},{"Name": "ProjectNumber","Value": "PSA"}]}
The Browse service can be called to retrieve browser results of various document fields. Details of this service as follows:
URL: http://<synergyUrl>/services/Exact.DocumentFlow.REST.svc/Browse
{ "BatchSize": 20, "LeadingFieldsValues": [], "SearchColumns": [], "PropertyName": "LanguageID", "DocumentType": 2, "SessionID": 0, "DocumentID": "8ed1db22-7d62-4ec7-81df-933234d3d9a9" }
Following are more details on the parameters: