Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This script is used to store user login credentials, environment variables as set by the user in the Cloud Services Portal, and session variables (key and var). This session is persistent. The script is uploaded to the Cloud Services Portal through the Application tab (Cloud Services Portal > Configuration> Integrations > Data Connector > Automations).

Info

This script is utilized when customers upload their own script instead of subscribing to an AppDirect marketplace script. If customers are using automation scripts from the marketplace, there is no need to upload this script. For information on uploading your own scripts for use with Data Connector, see Uploading Python Automation Scripts for Use with the Cloud Services Portal.

What the Script Does

  1. Logging Environment Variables and Event:

    • The process method logs the environment variables and the event being processed.

  2. Session Operations:

    • Add Operations: Adds key-value pairs ('key-1', 'value-1'), ('key-2', 'value-2'), and ('key-3', 'value-3') to the session.

    • Get Operations: Retrieves and logs the values associated with 'key-1', 'key-2', and 'key-3'.

    • Delete Operation: Deletes 'key-3' from the session and logs the session state.

    • Clear Operation: Clears all entries from the session and logs the session state.

...