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

  1. Select URL Link option.
  2. Tick the checkbox for “Append JET skey and project on url”
  3. 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.

  1. skey – This is a randomly generated key that is generated when the user clicks on the form.
  2. 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/

Suggest Edit
×

Hello!

Click one of our representatives below to chat on WhatsApp or send an email to sales@jetworkflow.com

× How can I help you?