microsoft / PowerApps-TestEngine

MIT License
101 stars 29 forks source link

[Feature]: Power Apps Portal Provider - Create Connection #352

Open Grant-Archibald-MS opened 3 months ago

Grant-Archibald-MS commented 3 months ago

Is your feature request related to a problem? Please describe.

Support for Power Apps Portal would provide the ability interact with make.powerapps.com. Building on this feature the ability to create a connection would allow connections to created using the logged in user and query the created connection id.

Describe the solution you'd like

Provide the following Power Fx functions to support test execution.

Power Fx Description
TestEngine.CheckConnectionExists("connectionName") Return True if the connection exists
TestEngine.CreateConnection(Table({Name:"connectionName", Parameters:"{}"})) Create connection if the connection name does not exist using json for parameters
TestEngine.GetConnections("connectionName") The table of matching connections

Describe alternatives you've considered

  1. Manual process to create connections
  2. pac cli pac connection
    • create, delete, list and update connections

Additional context?

No response