The URL action is the link used to execute any server-side script that was put down when creating this link.

The URL action expiration date is stored in the URL action (sys_url_action) dictionary, in the Expire at field. When that date comes, the URL becomes expired and stops working.

It logs the user who has followed the link and executed the script.

Managing URL actions


Role required: admin.

To create a URL action, you can use ss.generateUrlAction API method.

Also, URL action can be created via the SimpleOne interface. To do this, please perform the following steps:

  1. Navigate to the System Settings → URL Actions.
  2. Click New and fill in the fields.
  3. Click Save or Save and Exit to apply changes.

If you create a URL action manually, then you need to add the value of the key field after "/url-action/run?key=" in URL to get a correct, fully functional URL action.

URL actions form fields

FieldMandatoryDescription
KeyNThe hash used as a keyword in the URL and for a database search after the link has been visited.
ActiveNTurn this checkbox on if you need this action to be active.
ScriptYThis server-side script will execute after the link has been followed. You can use server-side SimpleOne API there.
Expire atYEnter script expiration date and time.
Assigned toYThe user who is assigned for the action.
ExecutorNThe user who has executed the action.

You can modify an existing URL action in a similar way, clicking on the value in the Key column.

  • No labels