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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Top Kudoed Authors
Users online (3,208)