Installed a gateway successfully on a client device which will be running UI flows, all working fine locally and network test reports successful. When using the 'Run a flow built by Power Automate Desktop (preview)' action in Power Automate, the gateway is available from the drop-down, but the test connection fails. The error is:
Test connection failed. Details: The 'x-ms-apim-token' header is not valid: the XRM URL is omitted.

EDIT: When trying to create a UI flow from the Power Automate admin center, I see a RpaMissingXrmInstanceApiUrl error, so it looks to be a CDS issue. This environment does have a valid CDS database, so I'm not sure where the issue lies.
