I’ve been stuck on this issue for awhile and would definitely appreciate some assistance!
I am using Powershell to pull a customer name from an email subject using regex; then wanting to pull the result back into UiPath for reporting later on.
UiPath is reading and storing the email subject into a variable that I am then trying to pass into Powershell as an argument.
$pattern = "Paycheck Protection Program documents for (.+), Received "
$args -match $pattern | Out-Null
I have ensured that UiPath is successfully pulling the EmailSubject variable from locals while debugging.
But am still getting “Cannot index into a null array” error every time it hits the Invoke Power Shell activity.
Example subject (EmailSubject): From Payroll Protection Admin via DocuSign, Subject Paycheck Protection Program documents for Scarlett Segura , Received 5:49 PM, Size 50 KB, Flag Status Unflagged,
Example customer name result(Regex): Scarlett Segura