- About JET
- Administration
- Creating an App
- Basic Functions
- Advanced Functions
- Automation Parameters
- Field Value Selection
- Field Value Formatting
- Field Value Manipulation
- Total Count of a Form
- Total Sum of Field
- Minimum Value of Field
- Maximum Value of Field
- Average Value of Field
- Site Level Parameters - Site Name
- Site Level Parameters - Login User
- Site Level Parameters - Login User Email
- Owner Email
- Check Permission Group
- Date Time Addition
- Email Image
- CheckBox Condition
- Usage of Time Fields
- Parent Form Updates
- 3rd Party API
- Other Features
- Known Issues & Solutions
- Linux
- Windows
- FAQ (JET)
5.8.External Retrieval of Username
External Retrieval of username
This is done in order to retrieve the username of the current login user for use in an external front facing web application.
Creating the form
- Select URL Link option.
- Tick the checkbox for “Append JET skey and project on url”
- Fill in the form URL.
In this screenshot example, we use a file called ‘test.php’ on the demo server.
Once the form is created, you can click on the form to open the url.
Generating the URL
https://demo.jetworkflow.com/ims/test.php?skey=ny_nk_ny_nE_nA_nx_nz_nC_nD_nx_nB_nyI4WFDqXERa6q1tx&project=sitename
The generated url would be something like the above.
- skey – This is a randomly generated key that is generated when the user clicks on the form.
- project – This is the site id of the current site you are login to.
This will allow the URL link to receive the values from the two parameters above.
https://demo.jetworkflow.com/ims/jetapi.php?method=getUserDetails&project=sitename&skey=ny_nk_ny_nE_nA_nx_nz_nC_nD_nx_nB_nyI4WFDqXERa6q1tx
With both the skey and project values, you can generate a new url to retrieve the username from Jet WorkFlow.
Note that the above url example is based on our demo server’s URL.
So if you have JET WorkFlow hosted separately, you can replace demo.jetworkflow.com/ims/ with your.website.com/JET/