cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dchilders85
Helper I
Helper I

How to get value of object that has no property names?

Hi all,

 

I am writing a flow that opens an email from the bank, dynamically finds the paragraph with the needed information, and then parses that paragraph. The flow opens the email, converts html to plain text, splits on line break into an array, and then filters the array for the beginning sentence of the paragraph. The result of the filter array is a single object.

 

Let's say the input of the split is ["/n","/n","/n","From: Joe","Subject: Hi","/n","/n","The debit amount posted is","/n","/n"] and the output of the filter is ["The debit amount posted is"].

 

I have tried using outputs['Filter_Element'][0], but it says I have to select the value by property name. My problem is there is no property name to select with. I just consistently end up with this object ["The debit amount posted is"]  instead of string type "The debit amount posted is"

 

Is there a way to either get the value out, or some way to assign a name property to the existing value so I can then extract it? I must be missing something obviously simple. 

 

Thank you!

 

dchilders85_0-1651237387487.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
dchilders85
Helper I
Helper I

Figured it out myself, I needed to use body... either body('Filter_Element') or outputs().body. Hopefully this saves someone else time lol

View solution in original post

1 REPLY 1
dchilders85
Helper I
Helper I

Figured it out myself, I needed to use body... either body('Filter_Element') or outputs().body. Hopefully this saves someone else time lol

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,651)