Solved! Go to Solution.
Hello @Vstar19 ,
just put the current expression inside toLower(..)
toLower(replace(body('Get_response_details')?['r82a060fd2a0d4f33abfca574c0159c02'],'olddomain','newdomain'))
Then a bit different order, make the whole response lowercase first, and then replace.
replace(toLower(body('Get_response_details')?['r82a060fd2a0d4f33abfca574c0159c02']),'olddomain','newdomain')
Hello @Vstar19 ,
just put the current expression inside toLower(..)
toLower(replace(body('Get_response_details')?['r82a060fd2a0d4f33abfca574c0159c02'],'olddomain','newdomain'))
Hello. Thanks for your response.
This works to an extent. I just tested it.
THe problem I have now is that is a user enters there email as firstname.lastname@OLDDOMAIN.COM , the flow expression you gave is ignored, because it is looking for olddomain in lowercase.
Is there anyway we can specify in the flow to say if the olddomain is written as CAPS, then make it lowercase.
OR is there a way to add multiple conditions to our query something like
toLower(replace(body('Get_response_details')?['r82a060fd2a0d4f33abfca574c0159c02'],'olddomain','newdomain', 'OLDDOMAIN,newdomain))
Essentially, what I am looking for is the ability to do something like this :
tolower(replace(body('Get_response_details')?['r82a060fd2a0d4f33abfca574c0159c02'],'old','new')),
tolower(replace(body('Get_response_details')?['r82a060fd2a0d4f33abfca574c0159c02'],'Old','new')),
tolower(replace(body('Get_response_details')?['r82a060fd2a0d4f33abfca574c0159c02'],'OLD','new'))
So nowmatter how the user types in the old domain, it understands to always change it to lower
Then a bit different order, make the whole response lowercase first, and then replace.
replace(toLower(body('Get_response_details')?['r82a060fd2a0d4f33abfca574c0159c02']),'olddomain','newdomain')
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
68 | |
22 | |
16 | |
16 | |
11 |
User | Count |
---|---|
130 | |
42 | |
32 | |
32 | |
28 |