On your instance, use Flow Designer to manage an integration between your local network and your instance.

Before you begin

Role required: admin, KMF_admin, sn_secrets.secret_manager, and sn_kmf.cryptographic_manager

In these steps, you create a Flow Designer workflow to create a text file on your local system.

Procedure

  1. On your instance, navigate to All > Process Automation > Flow Designer.
  2. Create an action in ServiceNow by selecting New and selecting Action.
    Creating a new action in flow designer
  3. Enter a name in the Action name field, and select Submit.
  4. Create a step by selecting the plus sign between Inputs and Error Evaluation in the Action Outline.
    Creating a new action step
  5. In the Choose a step to add to your action window, select Look Up Record.
    Selecting an action step
  6. In the Look Up Record step section, select MID Server [ecc_agent] in the Table field.
  7. Create another step by selecting the plus sign under your Look Up Record step.
  8. In the Choose a step to add to your action window, select SSH.
    Note: If you don't see the SSH option, you must activate the required plugin.
  9. In the SSH Step section, enter the following information:
  10. To fill the MID Server field, drag the MID Server Record pill from the Data section into the field.
    Dragging MID server data pill
    Warning: When dragging the pill into the field, select the pill and not the black arrow next to the pill.
  11. In the SSH Configuration section, enter the following value into the Command field.
    /bin/date > sm_ig_text_file.txt

    This command creates a text file in your local system using the decrypted secrets from the MID Server. The MID Server grants access to the ServiceNow instance (through Flow Designer) without ever giving the ServiceNow instance access to the decrypted secret.

    Tip: The /bin/date command is inserting the current date/time into the created text file. This command demonstrates that the integration is happening in real time based on the current date/time versus when the text file was created.
  12. Select the Save button to save the workflow.