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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,406)