pnp / provision-assist-m365

Provision Assist is a request and provisioning solution for Teams, Groups, SPO Sites and Viva Engage Communities in Microsoft 365. It can be used as part of a Copilot for Microsoft 365 deployment.
MIT License
62 stars 9 forks source link

Ampersand in site title causes Flow failure #62

Open rjhowes73 opened 8 months ago

rjhowes73 commented 8 months ago

Description

When entering an ampersand (&) in the Collaboration Space Information Title and clicking Verify it fails with the attached error. Looking at the Check Space Availability Flow, the step Check Area Type the Get Group Graph API call is failing with error code "Bad Request" and error message ""Invalid filter clause: There is an unterminated string literal at position 65 in 'mailNickname eq 'OGRP-IncidentsData' or displayName eq 'Incidents'."

The URI the Graph API call calls is https://graph.microsoft.com/v1.0/groups?$filter=mailNickname eq 'OGRP-IncidentsData' or displayName eq 'Incidents & Data', but looking at the error it is chopping the request at the ampersand.

ampersand error

Steps to reproduce

  1. Create a new request and enter and ampersand in the Title
  2. Click Verify
  3. Check failure in Check Space Availability Flow

Expected results

Check Space Availability Flow runs successfully

Actual Results

Check Space Availability Flow fails and error displayed in app.

Solution component

Power Automate Flows

Operating system (environment)

Windows

Additional Info

No response