Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug] PowerApps CLI unable to find/add Dataverse API

オープン
#433 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript
領域
api, cli

調査の方向性

まず、pa app find-dataverse-api --search "SaveDraftApi" --jsonpa app add dataverse-api --api-name new_SaveDraftApi を Dataverse メタデータ検出パスに沿って追跡し、new_SaveDraftApinew_WorkingApi を比較します。検索で公開済みの public Custom API が返され、そのスキーマと型付きサービスを add で生成できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

Describe the bug

I had GHCP compile this report based on our troubleshooting sessions. I'm a 'low code' dev with a sys admin background so wanted to make sure enough detail was captured for you. Hope that's okay, apologies if not.

pa app find-dataverse-api and pa app add dataverse-api do not discover a published Dataverse Custom API, even though the same operation is present in the environment's $metadata document.

A different Custom API in the same environment, new_WorkingApi, was successfully discovered and generated the previous day.

Steps to Reproduce

  1. Create a public, global Dataverse Custom API Action named new_SaveDraftApi.

  2. Set:

    • Is Function: No
    • Is Private: No
    • Allowed Custom Processing Step Type: Sync and Async
    • Enabled for Workflow: No
  3. Add required request parameters:

    • new_InspectionId (Guid)
    • new_ExpectedRowVersion (String)
    • new_ExteriorGoodCondition (Integer)
  4. Add response property:

    • new_CurrentRowVersion (String)
  5. Save and publish the Custom API in an unmanaged solution.

  6. Verify the Custom API record and parameters exist through Dataverse queries.

  7. Download the environment metadata document and confirm it contains new_SaveDraftApi.

  8. From the root of an associated Power Apps Code App project, run:

    pa app find-dataverse-api --search "SaveDraftApi" --json
    
  9. Then run:

    pa app add dataverse-api --api-name new_SaveDraftApi
    

Expected behavior

pa app find-dataverse-api should return new_SaveDraftApi, and pa app add dataverse-api should generate the schema and typed service for the public Custom API.

Actual behavior

The operation is omitted from pa app find-dataverse-api results. Adding it fails with:

No Dataverse operation named 'new_SaveDraftApi' was found.
Use 'find-dataverse-api' to search for available operations.

A broad search for Save returns built-in operations but does not return new_SaveDraftApi.

Screenshots or Error Messages

The Custom API is verified in Dataverse with these settings:

  • Unique name: new_SaveDraftApi
  • Binding type: Global
  • Is Function: No
  • Is Private: No
  • Allowed Custom Processing Step Type: Sync and Async
  • Request parameters:
    • new_InspectionId: Guid, required
    • new_ExpectedRowVersion: String, required
    • new_ExteriorGoodCondition: Integer, required
  • Response property:
    • new_CurrentRowVersion: String

The downloaded Dataverse $metadata XML contains both:

new_WorkingApi
new_SaveDraftApi

I ran a wireshark capture to try and rule out Corp proxy issues as a potential cause
Network capture shows successful DNS resolution, TLS handshakes, and traffic exchange with both the Power Platform environment API and Dataverse API. No TLS alerts or transport anomalies were observed on those connections.

Environment information

  • Framework, build tool or relevant package used: React 19, TypeScript 5.9, Vite 7
  • Power Apps SDK: @microsoft/power-apps 1.2.13
  • Code Apps CLI: pa 0.15.3
  • Connection/components: Dataverse Custom API, Power Apps Code App
  • Environment: Dataverse online, Power Platform environment in Australia region
  • OS: Windows 11

Additional context

The same project and environment successfully generated a client for the public global Custom API new_WorkingApi using:

pa app add dataverse-api --api-name new_WorkingApi

The new Custom API is included in the same unmanaged solution as the working API. It was created and republished more than 15 hours before testing, so this does not appear to be normal metadata propagation delay.

No manual edits were made to generated Code Apps API schemas or power.config.json.

主要言語
TypeScript
スター
504
フォーク
145
平均マージ
4時間 3分
マージ済み PR(30日)
1

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/PowerAppsCodeApps のほかの issue

microsoft/PowerAppsCodeApps の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。