Add Creation Date automatically to your form
In Flokzu you can add the creation/start date of a form automatically using our Web Service Echo.
In order to do this you must follow the following steps:
Place a Date type field in your form.
Add a Service call task in the workflow of your process and select Web Service REST. In this example we will call the task 'Add Date to form'.
Enter the ECHO URL under URL field: https://app.flokzu.com/flokzuopenapi/api/commons/JSON/echo
Select POST method.
Input: Select an input parameter (e.g. 'paramA') and '@Today' as value.
Output: Select the parameter previously chosen as output parameter and the Date field (e.g. 'Creation Date') as value.
Headers: Select 'Content-Type' as parameter and 'application/json' as value.
The result is that after you submit the initial form, today's date will be added to the date type field you have included in your form.
In order to do this you must follow the following steps:
Place a Date type field in your form.
Add a Service call task in the workflow of your process and select Web Service REST. In this example we will call the task 'Add Date to form'.
Enter the ECHO URL under URL field: https://app.flokzu.com/flokzuopenapi/api/commons/JSON/echo
Select POST method.
Input: Select an input parameter (e.g. 'paramA') and '@Today' as value.
Output: Select the parameter previously chosen as output parameter and the Date field (e.g. 'Creation Date') as value.
Headers: Select 'Content-Type' as parameter and 'application/json' as value.
The result is that after you submit the initial form, today's date will be added to the date type field you have included in your form.
Updated on: 12/12/2018
Thank you!