[Bug] GetOrganizations is missing from the generated Dataverse service with Power Apps SDK 1.1.1 / CLI 1.0.1
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- tooling
Línea de trabajo
Comienza con la ruta de generación de pa app add data-source y el diagnóstico AddDataSource.InternalActionsFiltered; después, inspecciona src/generated/services/MicrosoftDataverseService.ts y los metadatos del conector que contienen GetOrganizations. Reproduce el método que falta con la llamada de TypeScript documentada. Se considera terminado cuando el servicio generado conserva la operación, o cuando se proporciona un reemplazo compatible documentado y una guía de migración.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
After generating the Microsoft Dataverse connector with pa app add data-source,
MicrosoftDataverseService.GetOrganizations() is no longer available.
An existing code app's previously generated Dataverse service includes this
operation, and the app uses it to retrieve accessible Dataverse organizations
and their friendly names. Generating the connector for a new code app with the
versions below omits the method and causes the existing application code to
fail compilation.
The observed issue is in the generated connector service, not a missing
top-level export from the SDK.
Why this method is important
GetOrganizations is particularly useful for resolving details of the
currently selected environment using the Dataverse connector already connected
to the app. It returns accessible organizations, allowing the app to identify
the selected environment and obtain its friendly name and organization URL.
It is a discovery operation; the application performs the selected-environment
matching.
This supports an important user experience: showing a recognizable environment
name instead of a GUID, so users can confirm which environment they are working
in. It also supports environment-aware pickers without hardcoding environment
names or introducing a separate connector just to retrieve this metadata.
Please preserve this capability, or provide a supported replacement before
removing access to the method. Existing applications depend on it, and a
replacement should support retrieving the selected environment's details, not
only its identifier.
Environment
@microsoft/power-apps: 1.1.1@microsoft/power-apps-cli: 1.0.1@microsoft/power-apps-vite: 1.0.2- Node.js: 24.19.0
- Operating system: Windows
- Connector:
shared_commondataserviceforapps - Exact CLI version that originally generated the working method: not recorded.
Steps to reproduce
-
Create a React/TypeScript Power Apps code app with the versions above.
-
Initialize it and add an existing Microsoft Dataverse connection:
pa app init --display-name "Dataverse reproduction" --environment-id <environment-id> pa app add data-source --connector shared_commondataserviceforapps --connection-id <connection-id> --org-url https://<organization>.crm.dynamics.com -
Inspect
src/generated/services/MicrosoftDataverseService.ts. -
Attempt to compile the following application code:
import { MicrosoftDataverseService } from './generated/services/MicrosoftDataverseService'; const result = await MicrosoftDataverseService.GetOrganizations();
Expected behavior
The generated service retains GetOrganizations, or the tooling provides a
documented, supported replacement and migration guidance for applications
already using this operation.
Actual behavior
The generated service does not contain GetOrganizations. TypeScript reports:
TS2339: Property 'GetOrganizations' does not exist on type 'typeof MicrosoftDataverseService'.
Relevant diagnostic evidence
The connector-generation log reports:
AddDataSource.InternalActionsFiltered
totalActions: 93
internalCount: 56
internalOperationIds includes: GetOrganizations
This suggests the operation is being excluded by the CLI's internal-action
filter. Please confirm whether this exclusion is intentional or a regression.
The diagnostic numbers above are from the connector metadata returned during
this reproduction.
Impact and current workaround
Existing applications that use GetOrganizations for environment discovery or
friendly environment names cannot compile against the newly generated service.
For the current environment's display name, our workaround is to read
getContext().app.environmentId, add the separate Power Apps for Makers
connector, and match that ID against the results of
PowerAppsforMakersService.Get_Environments().
getContext() supplies the environment ID and Dataverse organization URL, but
does not expose the friendly environment name. The workaround therefore adds
another connector solely for a lookup previously handled through Dataverse.
It is not necessarily a complete replacement for all GetOrganizations use
cases.
We have not manually modified generated files to restore the operation.
Requested guidance and future alternative
If GetOrganizations will remain unavailable in generated services, please
clarify:
- What is the recommended, supported alternative for retrieving the selected
environment's friendly name and organization details in a Power Apps code app? - Can this be done through the existing Dataverse connector or the Power Apps
SDK context, without adding another connector? CouldgetContext()expose
the environment's friendly display name alongsideenvironmentIdand
dataverseOrgUrl? - Is Power Apps for Makers
Get_Environments()the recommended long-term
replacement, and what differences in permissions, licensing, or DLP
requirements should applications account for? - Please provide a working code sample, the minimum supported SDK/CLI versions,
and migration guidance so applications can continue to resolve the selected
environment if this method is not available in future releases.
- Lenguaje dominante
- TypeScript
- Estrellas
- 504
- Forks
- 145
- Merge medio
- 4 h 3 min
- PR fusionados (30 d)
- 1
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/PowerAppsCodeApps
-
bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
microsoft/PowerAppsCodeApps#467 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
microsoft/PowerAppsCodeApps#465 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
microsoft/PowerAppsCodeApps#463 · 1 comentario ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
microsoft/PowerAppsCodeApps#461 ·
-
bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
microsoft/PowerAppsCodeApps#460 · 3 comentarios ·
Todos los issues de microsoft/PowerAppsCodeApps
Issues similares
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
motiondivision/motion#3849 ·
-
Add: S Play Event HD Abiertocheck:passed streams:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Improvement for contact popover Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
LiteLLM proxy response_cost (x-litellm-response-cost) is never applied to ChatModelOutput.cost Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
i-am-bee/beeai-framework#1697 · 1 reacción ·
-
Support bun dedupe Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
antfu/node-modules-inspector#214 ·