Execute SQL Statement not accepting like operator with % wildcards on beginning and end of search string
It gives the complaint that the variable does not exist most likely due to that also being the variable notation in PAD.
Below query results in variable does not exist error:
SELECT PersonnelNumber, EmployeeNameFROM Table_Name where UserID like '%user_12345%';
Variable 'user_12345' doesn't exist.
PAD version: 2.6
Thanks for your post! We will start looking into this and hopefully we can find a work around for this. This looks to be an issue with how Graph is processing double "%".
Community Support Team _ Alex RezacIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Using double % works well in my statements:
SELECT PersonnelNumber, EmployeeNameFROM Table_Name where UserID like '%%user_12345%%'
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.