UiPath | Read Invoice | Read PDF | How to read invoice | How to get data from invoice | Extract data

Опубликовано: 10 Октябрь 2024
на канале: Act Automate
2,278
27

#rpa #uipath #pdf
👉 𝐄𝐧𝐠𝐥𝐢𝐬𝐡
● This video is about reading the data from an invoice and then writing it to a text file.
● This video teaches you how to read data (e.g. vendor, bank name, bank account, IBAN, address, name, telephone number) from an invoice and then use it for the process.

👉 𝐆𝐞𝐫𝐦𝐚𝐧
● In diesem Video geht es darum, die Daten aus einer Rechnung (invoice) auszulesen und diese dann in einer Text Datei zu schreiben.
● Mit diesem Video lernt man, wie man Daten (z.B. Vendor, Bank Name, Bank Account, IBAN, Adresse, Name, Telefonnummer) aus einer Rechnung auslesen kann und diese dann für den Prozess zu verwenden.

🌟 𝗖𝗼𝗱𝗲
✔ PDF file path: "C:\Tipps&Tricks\ReadInvoice\NPO Invoice.pdf"

✔ ArrayText = ExtractedText.Split(Environment.NewLine.ToArray, StringSplitOptions.RemoveEmptyEntries)
✔ Address = ArrayText(1)
✔ City = ArrayText(2).Split(","c)(0)
✔ InvoiceNumber = ArrayText(3).Split(","c)(1).Split({"INVOICE"},StringSplitOptions.None)(1).Split("#"c)(1)
✔ Vendor = ArrayText(ArrayText.Count-9)

✔ If item.Contains("Bank Name: ")
✔ BankName = item.Split(":"c)(1)
✔ If item.Contains("IBAN Code: ")
✔ IBANCode = item.Split(":"c)(1)
✔ If item.Contains("Bank Account: ")
✔ BankAccount = item.Split(":"c)(1)

✔ If item.Contains("Phone: ")
✔ PhoneNumber = item.Split(":"c)(1).Split({"INVOICE"},StringSplitOptions.None)(0)

✔ Break activity

✔ Write Text File:
✔ Text = "Invoice Details" + Environment.NewLine + Environment.NewLine + "Vendor: " + Vendor + Environment.NewLine + "Vendor Address: " + Address + Environment.NewLine + "City: " + City + Environment.NewLine + "Phone Number: " + PhoneNumber + Environment.NewLine + "Bank Name: " + BankName + Environment.NewLine + "Bank Account: " + BankAccount + Environment.NewLine + "IBAN: " + IBANCode
✔ File Name = "C:\Tipps&Tricks\ReadInvoice\OutputTextFile.txt"

📝 𝐏𝐫𝐨𝐜𝐞𝐝𝐮𝐫𝐞
➊ Import PDF Activities:    • UiPath | Import PDF Activities to UiP...  
➋ Create the variables as in Video
➌ Add Read PDF Text activity and set an output variable: ExtractedText
➍ Add Assign and IF activities and set the code
➎ Add Write Text File activity
➏ Add the Path for the Text file which should be created
➐ Add the text you want to write in this text file
➑ Run the code to see result

✍ 𝗞𝗲𝘆 𝗪𝗼𝗿𝗱𝘀
→ UiPath
→ UiPath Automation
→ UiPath Activity
→ Read Invoice
→ Read PDF File
→ Read Invoice Content
→ Eine Rechnung auslesen
→ Daten aus einer Rechnung exportieren
→ Daten einer Rechnung auslesen
→ PDF Rechnung auslesen
→ Read Rechnung
→ Get Data from PDF file
→ PDF OCR
→ PDF Activities
→ PDF Automation
→ PDF Automatisierung
→ Rechnungsdaten auslesen

👍    / @actautomate