Reference,
lastIndexOf('hello world', 'world')
I have been trying this expression, and it returns 6 instead of 10.
Can you please have this fixed?
To test this, I am simply initializing a variable with this expression, and it doesnt work!
Thank you.
Hi @Saikumar,
Thanks for your feedback. I can reproduce this issue on my side. It seems that functions indexof and lastindexof return the same value. While lastindexof should return the ending position of a string.
I will help report this issue on my side and back to you later.
Best regards,
Mabel Mao
Hi @Naireb
This is expected. Please see the descrption from the doc link you provided:
"Return the starting position or index value for the last occurrence of a substring."
For example,
lastIndexOf('hello world world', 'world')
Should be 12.
@v-yamao-msft FYI.
Thanks,
Vincent
Im trying this some 2 years later:
lastIndexOf(variables('FullLibraryURL'),'/'')
but this is not working, 'the expression is invalid' but it seems valid if im not mistaken.
I noticed i had 1x ' too many in the end.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.