Hello,
I have one excel file. I need to validate excel columns like Name, Date of Birth.How can i validate these columns in power automate cloud flow.
Hi,
Is there any way did not use the apply to each and validate the name field.
Hey @Sathya123
You missed an s in contains function in items. You have written item in that.
contains(outputs('Compose'),items('Apply_to_each'))
And also add a 0 to the array of strings. So that if 0 is also there in the name, it will called it invalid. I missed that.
I have an error in Apply to each
Error Details:
Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'item' must not have any parameters.'.
Hey @Sathya123
Save your name in a compose. Make another compose and store array of strings containing each digit.
After this run a apply to each loop with array of digits as the input. After this use condition action and inside use contains function and match it the current item. If its equal to true, there is a digit in the name and if its false there is no digit in the name.
contains function: contains(outputs('Compose'),items('Apply_to_each'))
I hope you like it.
This is my format for Ex: ABCDE1234. I want to validate Name Contains alphabet only.
My requirement is validated columns in power automate cloud flow
I don't know how your Excel gets filled, but can't you simply do that with Data validation within Excel itself?
https://www.extendoffice.com/documents/excel/3408-excel-only-allow-alphanumeric.html#a3