question

ez-Jurgen avatar image
0 Votes"
ez-Jurgen asked ez-Jurgen commented

Logic Apps: Remove all spaces from Runbook Parameters

Hi,

I am creating a new sitecollection using a logic app to fetch the parameters and a runbook to create the site collection

Now I do not want spaces in the site collection URL so I thought I could remove them first with a Replace operation before I give it to the runbook. But that fails

Can this be done on in a logic app?

here is a screenshot
52594-screenshot-2021-01-01-005859.png


azure-logic-appsazure-automation
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

I am using a workaround now in the runbook itself:

 # remove spaces from SiteCol
 $SiteColNameTrimmed = $SiteCol -replace '\s',''

Just wondering how to do that in the LA before parsing that to the runbook

0 Votes 0 ·

1 Answer

JayaC-MSFT avatar image
0 Votes"
JayaC-MSFT answered JayaC-MSFT edited

Hello @ez-Jurgen, you may try to leverage "replace" function in that case. 53542-image.png to modify the

Let me know if this helps!



image.png (43.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.