Zum Hauptinhalt gehen

Can a SearchTableParameterQuery be run in a secure site?

Kommentare

2 Kommentare

  • Permanently deleted user

     

    Hello Irene, since the “SearchTableParameterQuery” activity runs from Essentials, and not from the viewer, you have to generate a token for it from the workflow.

    You can do that by using the “WebRequest” activity. You have to configure the URL of the REST endpoint where you can get the token, as well as a username/password (probably you can create a dedicated user for this on the REST manager) and other parameters (you can see them on the example workflow attached). Also, since the reply from the REST endpoint is in JSON format, you have to parse the reply in order to get the token string (the steps are in the attached workflow as well).

    On the URL of the “SearchTableParameterQuery” you probably have something like “(http://HOSTNAME/Geocortex/Essentials/REST/sites/%20Example_Site/searchtables/Search_Table/search) http://HOSTNAME/Geocortex/Essentials/REST/sites/Example_Site/searchtables/Search_Table/search ”. Once you have the token in a string variable, you can add it to the URL  of the activity like:

    "(http://HOSTNAME/Geocortex/Essentials/REST/sites/Charlotte/searchtables/Search_Table/search?token=) http://HOSTNAME/Geocortex/Essentials/REST/sites/Example_Site/searchtables/Search_Table/search?token= "+tokenVariable

    Where “tokenVariable” is the token returned by the “WebRequest” activity and parsed.

    Please note that this workflow will only work with the site security enabled.  If the site security is disabled then the "WebRequest" response will be empty.

    You can download the example workflow from (https://support.geocortex.com/Data/Sites/1/userfiles/3322/getsitetoken.zip) here .

    -Alejandro

    0
  • Permanently deleted user
    The example workflow is no longer available, is it possible to relink this?

     

    Elliott
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.