cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Roger_Katsu
Helper II
Helper II

Is there any syntax error for below expression?

Hi everyone,

 

I am getting output from a Form Processing Model.

Roger_Katsu_0-1642053261101.png

 

@{outputs('Extract_information_from_forms')?['body/responsev2/predictionOutput/labels/_5E33_79c2efdc754223320d08bd4b73ab61609a/value']}

 

And, as I want to remove specified characters from the output before put it into Excel, I use below expression to handle the replace. 

replace(outputs('Extract_information_from_forms')?['body/responsev2/predictionOutput/labels/_5E33_79c2efdc754223320d08bd4b73ab61609a/value'],":","")

Roger_Katsu_2-1642053526882.png

 

But I got below error message, can anybody help to tell me if I had made a wrong syntax of replace function?

 

Roger_Katsu_1-1642053452896.png

 

Thanks.

Regards,
Roger
 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
JoeF-MSFT
Power Apps
Power Apps

Hi @Roger_Katsu,

 

Thanks for the question. I believe what is missing is that you need to use singe quotes (') instead of double quotes (").

 

Try this: replace(outputs('Extract_information_from_forms')?['body/responsev2/predictionOutput/labels/_5E33_79c2efdc754223320d08bd4b73ab61609a/value'],':','')

View solution in original post

1 REPLY 1
JoeF-MSFT
Power Apps
Power Apps

Hi @Roger_Katsu,

 

Thanks for the question. I believe what is missing is that you need to use singe quotes (') instead of double quotes (").

 

Try this: replace(outputs('Extract_information_from_forms')?['body/responsev2/predictionOutput/labels/_5E33_79c2efdc754223320d08bd4b73ab61609a/value'],':','')

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Users online (1,389)