- Überblick
- Adobe Sign
- Alteryx
- Amazon Comprehend
- Amazon Connect
- Amazon Rekognition
- Amazon Textract
- Box
- Versionshinweise
- Über das Box-Aktivitätspaket
- Korrigieren der XAML nach Paketaktualisierung
- Projektkompatibilität
- Einrichten
- Technische Referenzen
- Box Scope
- Commit Session
- Create File Version Session
- Create Upload Session
- Upload Part
- Delete Old Version
- Get Versions
- Promote Version
- Upload File Version
- Datei kopieren (Copy File)
- Delete File
- Download File
- Get File Comments
- Get File Info
- Get File Info Details
- Get File Lock Info
- Lock File
- Datei verschieben (Move File)
- Unlock File
- Upload File
- Copy Folder
- Create Folder
- Delete Folder
- Get Folder Info
- Get Folder Items
- Rename Folder
- Search For Content
- Methode ausführen
- Kognitiv (Cognitive)
- Versionshinweise
- Über das Cognitive-Aktivitätspaket
- Google Textanalyse (Google Text Analysis)
- Google Text Translate
- IBM Watson NLU Textanalyse (IBM Watson NLU Text Analysis)
- IBM Watson Textanalyse (IBM Watson Text Analysis)
- Microsoft Textanalyse (Microsoft Text Analysis)
- StanfordNLP Textanalyse (StanfordNLP Text Analysis)
- StanfordNLP Get-Komponenten (StanfordNLP Get Components)
- Stanford Get OpenIE-Beziehungen (StanfordNLP Get OpenIE Relations)
- Stanford Get-Satz-Stimmung (StanfordNLP Get Sentence Sentiment)
- DocuSign
- Versionshinweise
- Über das DocuSign-Aktivitätspaket
- Projektkompatibilität
- Einrichten
- DocuSign Scope
- Invoke DocuSign Operation
- Create Envelope
- Create Envelope And Send
- Create Envelope From Template
- Create Envelope Recipients
- Get Document
- Get Documents
- Get Envelope
- Get Form Data
- Send Envelope
- Update Envelope
- List Attachments
- List Custom Fields
- List Documents
- List Envelope Status Changes
- List Recipients
- Create Bulk Send List
- Create Bulk Send Request
- Get Bulk Send List
- Get Bulk Send Lists
- Create Template Custom Fields
- Create Template Recipients
- Get Template
- List Templates
- Google Vision
- Jira
- Versionshinweise
- Über das Jira-Aktivitätspaket
- Projektkompatibilität
- Einrichten
- Jira Scope
- Methode ausführen
- Add Attachment
- Delete Attachment
- Download Attachment
- Get Attachments
- Kommentar hinzufügen
- Delete Comment
- Get Comments
- Create Component
- Delete Component
- Get Components
- Search Dashboards
- Create Filter
- Get Filters
- Create Issue Link
- Delete Issue Link
- Get Issue Link Types
- Get Issue Links
- Add Watcher
- Assign Issue
- Clone Issue
- Create Issue
- Delete Issue
- Get Issue
- Get Watchers
- Remove Watcher
- Search Issues Using JQL
- Transition Issue
- Update Issue
- Create Project
- Delete Project
- Get Project Types
- Get Projects
- Update Project
- Get Transitions
- Benutzer erstellen
- Benutzer löschen
- Find Users
- Marketo
- Microsoft Dynamics
- Microsoft Dynamics Finance and Operations
- Microsoft Teams
- Versionshinweise
- Projektkompatibilität
- Einrichten
- Microsoft Teams-Scope
- Team erstellen
- Team aus Gruppe erstellen
- Team abrufen
- Teams abrufen
- Create Channel
- Kanal löschen
- Kanal abrufen
- Kanäle abrufen
- Updatekanal
- Chat abrufen
- Chats abrufen
- Chat-Mitglieder abrufen
- Get message
- Get Messages
- Nachrichtenantworten erhalten
- Auf Nachricht antworten
- Send Message
- Termin erstellen
- Ereignis löschen
- Ereignis abrufen
- Ereignisse abrufen
- Get User Presence
- Microsoft Translator
- Microsoft Vision
- Oracle Integration Cloud
- Über das Oracle Integration Cloud-Aktivitätspaket
- Projektkompatibilität
- Einrichten
- Technische Referenzen
- Oracle-Prozessumfang
- Prozessinstanzen abrufen
- Prozessinstanz abrufen
- Prozess starten (Start Process)
- Status der Prozessinstanz aktualisieren
- Kommentar zur Prozessinstanz hinzufügen
- Prozessinstanzanhänge abrufen
- Download Attachment
- Aufgaben abrufen
- Get Task
- Aktionsaufgabe
- Aufgabe neu zuweisen
- Add Task Comment
- Aufgabenanhänge abrufen
- Aufgabenzugeordnete abrufen
- Oracle NetSuite
- Salesforce
- Versionshinweise
- Über das Salesforce-Aktivitätspaket
- Projektkompatibilität
- Einrichten
- Schnellstart
- Salesforce-Anwendungsbereich
- Create Bulk API Job
- Get Bulk API Job
- Get Bulk API Job Results
- Start or Abort Bulk API Job
- Assign File
- Download File
- Upload File
- Composite Request
- Delete Record
- Datensätze der Listenansicht abrufen
- Datensatz abrufen
- Datensatz einfügen
- Update Record
- Upsert Record
- Execute Report
- Execute SOQL
- Format Column Names
- Format Labels And Values
- Lightning REST API Request
- Suche
- SAP BAPI
- ServiceNow
- Slack
- Smartsheet
- Versionshinweise
- Über das Smartsheet-Aktivitätspaket
- Projektkompatibilität
- Einrichten
- Technische Referenzen
- Schnellstart: Arbeiten mit Zeilen
- Smartsheet Application Scope
- Datei anfügen
- Attach URL
- Delete Attachment
- Get Attachment
- List Attachments
- Kommentar hinzufügen
- Delete Comment
- Get Comment
- List Discussions
- Copy Folder
- Create Folder
- Delete Folder
- Get Folder
- List Folders
- Add Group Members
- Get Group
- List Groups
- Remove Group Member
- Get Report
- List Reports
- Zeilen hinzufügen
- Copy Rows
- Create Discussion on Row
- Delete Rows
- Get Row
- List Rows
- Move Rows
- Update Rows
- Blatt kopieren (Copy Sheet)
- Create Sheet
- Create Sheet From Template
- Download Sheet
- Get Sheet
- List Sheets
- Update Sheet
- Benutzer hinzufügen
- Get User
- List Users
- Benutzer entfernen
- Copy Workspace
- Create Workspace
- List Workspaces
- Import Sheet from CSV / XLSX
- Invoke Smartsheet Operation
- Search Activity
- Send via Email
- Share Object
- SuccessFactors
- Tableau
- Twilio
- Workato
- Workday
Klassische Integrationsaktivitäten
Überblick
Dieser Leitfaden soll Sie bei der Erstellung eines funktionierenden Beispiels unterstützen, das die folgenden ServiceNow-Aktivitäten verwendet:
- ServiceNow-Datensatz einfügen
- Add Attachment
- Download Attachment
- Delete Attachment
- Get ServiceNow Record
- Delete ServiceNow Record
Mit diesem Arbeitsbeispiel können Sie die Verbindung mit Ihrer ServiceNow-Instanz schnell überprüfen und sich mit den Eingabe-/Ausgabedatentypen der Aktivität vertraut machen.
Nachdem Sie die Schritte in dieser Anleitung ausgeführt haben, verfügen Sie über eine Automatisierungs-Sequence, die Folgendes ausführt:
-
Stellt eine Verbindung mit Ihrer ServiceNow-Instanz her (ServiceNow Scope).
-
Erstellt einen neuen ServiceNow-Vorfall (ServiceNow-Datensatz einfügen).
-
Lädt eine Datei in den neuen Incident hoch (Anhang hinzufügen).
-
Lädt die hochgeladene Datei in einen lokalen Ordner herunter (Anhang herunterladen).
-
Löscht die hochgeladene Datei (Anhang löschen).
-
Überprüft, ob die Datei gelöscht wurde, indem versucht wird, den Anhangsdatensatz abzurufen, und die erwartete Fehlermeldung ausgegeben wird (Get ServiceNow Record, If).
-
Löscht den erstellten Incident (ServiceNow-Datensatz löschen).
Voraussetzungen
Bevor Sie beginnen:
- Schließen Sie die Schritte zum Einrichten von ServiceNow ab.
- Eine lokale Datei, die an einen ServiceNow-Datensatz angehängt werden soll.
Schritte
Erstellen Sie Ihr Projekt
-
Fügen Sie eine Aktivität hinzu.
-
Enter the AssetName for the credential asset you created (during the Setup) for your ServiceNow instance username and password (e.g., "ServiceNowSignin").
-
Create and enter a
SecureStringvariable for your Password value (e.g., password). -
Create and enter a
Stringvariable for your Username value (.e.g, username). -
Add a second Get Credential activity.
-
Enter the AssetName for the credential asset you created (during the Setup) for your ServiceNow instance Client Id and Client Secret (e.g., "ServiceNowClients").
-
Create and enter a
SecureStringvariable for your Password value (e.g., clientSecret). -
Create and enter a
Stringvariable for your Username value (.e.g, clientId). -
Fügen Sie die Aktivität ServiceNow Scope nach den beiden Aktivitäten Get Credential hinzu.
-
In the Client Secret property, enter the
SecureStringvariable you created for your Client Secret in the steps above (e.g., clientSecret). -
In the Client Id property, enter the
Stringvariable you created for your Client Id (e.g., clientId). -
In the Password property, enter the
SecureStringvariable you created for your password in the steps above (e.g., password). -
In the Username property, enter the
Stringvariable you created for your username (e.g., clientId). -
Create and enter a
Stringvariable for your EndpointURL (e.g., endpointURL) -
Fügen Sie die Aktivität Insert ServiceNow Record innerhalb der Aktivität ServiceNow Scope hinzu.
-
Klicken Sie auf die Schaltfläche Konfigurieren in der Aktivität ServiceNow Record einfügen .
-
In Select Object drop-down list, select Incident.
-
Create and enter a
Stringvariable for the sys_id Value (e.g., sysID) -
Using the Add Single Field textbox, enter short_description.
- Enter a short_description Value (e.g., "UiPath-Attachment").
-
Click Done.
-
Create and enter a
ResponseStatusvariable for the ServiceNowStatus value (e.g., insertRecordResponse). -
Fügen Sie eine Aktivität nach der Aktivität ServiceNow Record einfügen hinzu.
-
Enter the following Text: "Record created: "+insertRecordResponse.Success.ToString+" | sys_id: "+sysID (where sysID is the variable created for the sys_id Value field above).
-
Fügen Sie die Aktivität Add Attachment nach der Aktivität Write Line hinzu.
-
Click the Configure button inside the Add Attachment activity.
-
In the Select Object drop-down list, select Incident.
-
In the FileName property, enter the full path to your local file (e.g., "C:\UiPath_Projects\DemoFile.docx") or click the Choose File button in the activity.
-
In the ObjectSysId property, enter the sys_id variable you created for the Insert Record activity (e.g., sysID)
-
Create and enter a
Stringvariable for the AttachmentId property (e.g., attachmentId). -
Create and enter a
ResponseStatusvariable for the ServiceNowStatus value (e.g., addAttachmentResponse). -
Fügen Sie eine Aktivität nach der Aktivität ServiceNow Record einfügen hinzu.
-
Enter the following Text: "Attachment added: "+addAttachmentResponse.Success.ToString+ " | sys_id: "+attachmentId (where attachmentId is the variable created for the AttachmentId property above).
-
Fügen Sie die Aktivität Download Attachment nach der Aktivität Write Line hinzu.
-
Enter the FilePath where you want to download the file (e.g., "C:\UiPath_Projects\Downloads").
-
In the SysId property, enter the AttachmentId variable you created for the Add Attachment activity (e.g., attachmentId).
-
Fügen Sie die Aktivität Delete Attachment nach der Aktivität Download Attachment hinzu.
-
In the ObjectSysId property, enter the AttachmentId variable you created for the Add Attachment activity (e.g., attachmentId).
Testen Sie Ihr Projekt
-
Fügen Sie die Aktivität Get ServiceNow Record nach der Aktivität Delete Attachment hinzu.
-
Click the Configure button inside the Insert ServiceNow Record activity.
-
In the Select Object drop-down list, select Attachment.
-
In the sys_id Value field, enter the AttachmentId variable you created for the Add Attachment activity (e.g., attachmentId)
-
Click Done.
-
Create and enter a
ResponseStatusvariable for the ServiceNowStatus value (e.g., getRecordResponse). -
Fügen Sie eine Aktivität nach der Aktivität Get ServiceNow Record hinzu.
-
In the Condition property, enter getRecordResponse.Success=False And getRecordResponse.Message.Contains("No Record") to determine if the attachment record was successfully deleted by checking the error message (where getRecordResponse is the variable your created for the ServiceNowStatus property above).
-
In the Then statement box, add a Write Line activity.
- In the Text property, enter "Test passed: "+getRecordResponse.Message.
- Fügen Sie die Delete ServiceNow-Datensatz nach der Aktivität Write Line hinzu.
- Click the Configure button inside the Add Attachment activity.
- In the Select Object drop-down list, select Incident.
- In the Id property, enter the sys_id variable you created for the Insert Record activity (e.g., sysID).
- Create and enter a
ResponseStatusvariable for the ServiceNowStatus value (e.g., deleteRecordResponse).
-
Add a Write Line activity after the Delete ServiceNow Record activity.
- Geben Sie in der Eigenschaft Text „Datensatz gelöscht: “+deleteRecordResponse.Success.ToString“ ein.
-
In the Else statement box, add a Write Line activity.
- In the Text property, enter "Test failed: "+getRecordResponse.Message.
-
Click Run and verify the Output window includes the expected write line values.
Alles erledigt!
Weitere Informationen zu den ServiceNow-Aktivitäten ( einschließlich Eigenschaftseingaben/-ausgaben) finden Sie auf der Seite Aktivitäten für eine vollständige Liste der Aktivitäten und Links zu den Seiten mit den Aktivitätsdetails.