cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chasefooo
Frequent Visitor

Trying to parse a line out of a text string

Im having an issue with extracting a string within another string.

I am inserting the following function into an "initialize variable" action

 

substring(variables('email_body'),add(lastIndexOf(variables('email_body'),'Case Number'),13),16)
 
When i test, it only returns the function as a string instead of the string i am trying to extract.
when i type the function out in the editor, it shows as invalid as well. So im sure that it is just a simple error on my part that i am missing. any help would be appriciated!
Thank you,
1 ACCEPTED SOLUTION

Accepted Solutions
chasefooo
Frequent Visitor

found my problem. I didnt know functions HAD to be typed into the popup window for them to be valid.

I was typing my function directly as an input.

View solution in original post

1 REPLY 1
chasefooo
Frequent Visitor

found my problem. I didnt know functions HAD to be typed into the popup window for them to be valid.

I was typing my function directly as an input.

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,039)