Configure Process Builder trigger for RPA Bots for Salesforce

Process Builder is one mechanism to create a flow with an event-triggered bot. Mit dieser Methode können Nutzer Prozesse automatisieren, indem sie ein Auslösekriterium für den bot festlegen.

Vorbereitungen

Stellen Sie sicher, dass Sie über Folgendes verfügen:
  • Es muss der Nutzerberechtigungssatz für die AAI RPA Bots Lightning-Komponente aktiviert sein.
  • Das Objekt und die Kriterien (vom Administrator definiert) sowie das durch Verwendung des Ablaufs zu erzielende Resultat müssen verfügbar sein.
  • Familiarity with mapping an object ID field to the record ID field required by the Run Bot class.
  • Bot Configurations record ID if you are planning on Running Bot by Bot Configuration.

Prozedur

  1. From Salesforce navigate to Setup > Process Automation > Process Builder.
  2. Click New and enter the following details for the process flow: a process name, an API name, a description, and how the process starts.
  3. Klicken Sie auf Speichern.
  4. Choose the object and specify when to start the process.
  5. Define your criteria.
  6. Click Add Action.
  7. In the Select and Define Action panel, enter configurations for your bot.
  8. Choose Apex for the Action Type.
  9. Choose one of the following from Apex Class.
    • Run Bot By Bot Configuration

      Use saved Bot Configurations from the Salesforce Connector.

      1. Enter the Bot Configuration ID.
      2. Choose the Record ID.

        The Type should be Reference and the value should match the event Object.

    • Bot mit API-Schlüssel ausführen

      Verbinden Sie sich zum Ausführen eines gespeicherten bots mit Ihrem Control Room, indem Sie Ihre Anmeldeinformationen eingeben.

      1. Geben Sie Ihren CR-Nutzernamen ein.
      2. Geben Sie die CR-URL ein.
      3. Geben Sie den CR-API-Schlüssel ein.
      4. Geben Sie den Bot-Namen ein.
      5. Legen Sie die Ausführen-als-Nutzer-ID für den Bot Runner-Nutzer, der den bot ausführen soll, fest.
        1. Click Add Row.
        2. Select Run As User Id for Field.
        3. Enter the Bot Runner in Value.
      6. Optionally, click Add Row to select more parameters to use in the bot output such as Device Pool Id, RecordId, and custom variables.
        • Variable names must match the exact name of the input variable defined within the bot.

          Wenn Sie mehrere Variablennamen angeben möchten, müssen diese mit dem „Pipe“-Symbol (senkrechter Strich) getrennt werden, z. B.: inputOne|inputTwo|inputThree.

        • Variable values are passed to the bot in the same order as variable names are provided (for example, as in the previous step inputValue1|inputValue2|inputValue3).
    • Bot mit Verbindung ausführen

      Verwenden Sie eine Live-Verbindung zu Ihrem Control Room, um einen gespeicherten bot auszuführen.

      1. Geben Sie den Bot-Namen ein.
      2. Geben Sie die Verbindungs-ID ein.
      3. Legen Sie die Ausführen-als-Nutzer-ID für den Bot Runner-Nutzer, der den bot ausführen soll, fest.
        1. Click Add Row.
        2. Select Run As User Id for Field.
        3. Enter the Bot Runner in Value.
      4. Optionally, click Add Row to select more parameters to use in the bot output such as Device Pool Id, RecordId, and custom variables.
        • Variable names must match the exact name of the input variable defined within the bot.

          Wenn Sie mehrere Variablennamen angeben möchten, müssen diese mit dem „Pipe“-Symbol (senkrechter Strich) getrennt werden, z. B.: inputOne|inputTwo|inputThree.

        • Variable values are passed to the bot in the same order as variable names are provided (for example, as in the previous step inputValue1|inputValue2|inputValue3).
    • Bot mit Passwort ausführen

      Verbinden Sie sich zum Ausführen eines gespeicherten bots mit Ihrem Control Room, indem Sie Ihre Anmeldeinformationen eingeben.

      1. Geben Sie den Bot-Namen ein.
      2. Geben Sie Ihren CR-Nutzernamen ein.
      3. Geben Sie die CR-URL ein.
      4. Geben Sie das CR-Passwort ein.
      5. Legen Sie die Ausführen-als-Nutzer-ID für den Bot Runner-Nutzer, der den bot ausführen soll, fest.
        1. Click Add Row.
        2. Select Run As User Id for Field.
        3. Enter the Bot Runner in Value.
      6. Optionally, click Add Row to select more parameters to use in the bot output such as Device Pool Id, RecordId, and custom variables.
        • Variable names must match the exact name of the input variable defined within the bot.

          If you are specifying multiple variable names, use a pipe to separate each (fo example, inputOne|inputTwo|inputThree).

        • Variable values are passed to the bot in the same order as variable names are provided (for example, as in the previous step inputValue1|inputValue2|inputValue3).
  10. Klicken Sie auf Speichern.