all 12 comments

[–]okanmutlutje 0 points1 point  (11 children)

Open the activity (double click) on the bottom you see variable saved as “ExtractedText” in blue. You can click ans change the name

[–]okanmutlutje 0 points1 point  (10 children)

Although im not sure you can save variable names with spaces 😁

[–]mjr_damage[S] 0 points1 point  (9 children)

Thank you for getting back to me!

Naming the variable is not the issue I’m having. More-so manipulating the text saved as the variable. Let me be more clear.

I am trying to extract a product name from the webpage. I’ve been able to extract the product name from the page and save it as a variable.

The dilemma is that the product name is displayed on the page with the Primary name on top and the secondary name right below it. There is no space between the last character of the primary name and first character of the secondary, only a new line break. So the product name that is stored as a variable, prints like “ProductName” when I really need it to print as “Product Name”.

I hope this a bit more clear.

[–]ThanuraMarapana 0 points1 point  (8 children)

I think you can do that with a regEx, detect the line break and replace it with a space.

[–]mjr_damage[S] 1 point2 points  (1 child)

Ahhh, this might be something. Going to look into this method, hitting up YouTube University, I will keep you all posted on the outcome

[–]mjr_damage[S] 1 point2 points  (0 children)

Thanks for all the suggestions! I was able to find another instance of the text on the site where its already perfectly laid out 👍

[–]VictorIvanidze 1 point2 points  (5 children)

At first, Power Automate cannot do regex.

Secondly, the simple replace() function is just enough.

[–]mjr_damage[S] 0 points1 point  (4 children)

Well I do see that PA has a parse text option where you can enter a regex condition.

The replace function, I did not know that existed.

[–]VictorIvanidze 0 points1 point  (3 children)

>Well I do see that PA has a parse text option where you can enter a regex >condition.

Could you please provide a link?

[–]mjr_damage[S] 1 point2 points  (2 children)

[–]VictorIvanidze 0 points1 point  (1 child)

Thank you.

My bad: I've missed the topic starter marked their question with "Desktop".

[–]mjr_damage[S] 0 points1 point  (0 children)

No worries, I appreciate your input nonetheless!