feat: add cmdlets to retrieve Dataverse record, maker portal, and admin portal URLs#238
feat: add cmdlets to retrieve Dataverse record, maker portal, and admin portal URLs#238Copilot wants to merge 7 commits into
Conversation
|
@copilot You failed with an error. Retry |
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot You missed the bits about "with table context" and you added links to pages i didnt ask for |
…xt and app uniquename Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
Fixed in commit 1df15ee. Removed the extra page parameters I added (solutions, apps, flows, analytics, resources, etc.) and added the missing table context (TableName parameter) and app uniquename (AppUniqueName parameter) to the maker portal cmdlet. The admin portal cmdlet now simply returns the environment hub URL. |
|
@copilot app unique name is for Get-DataverseRecordUrl only. It should query for appmodule (including unpublished) to determine the appid needed in the URL Also add something to concepts in the readme |
…, add URL generation docs Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
Fixed in commit 4d8b4d2. Moved AppUniqueName parameter to Get-DataverseRecordUrl where it queries the appmodule entity (including unpublished apps) to resolve the app ID. Kept AppId as an alternate parameter. Removed AppUniqueName from Get-DataverseMakerPortalUrl. Added comprehensive URL generation documentation to docs/core-concepts/url-generation.md and linked it from the README. |
…ker portal Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
|
@copilot use the Dataverse connection details you now have to manually test and improve the cmdlets. When you're done, update the tests and e2e tests, docs and cmdlet docs. |
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
Tested against the real Dataverse environment and fixed two bugs discovered during testing (commit
Also improved Added 8 E2E tests in |
Description
Adds three new cmdlets to generate URLs for accessing Dataverse resources in web browsers. These cmdlets help users quickly navigate to specific records, the Power Apps Maker Portal (with table context), and the Power Platform Admin Center.
Changes Made
Get-DataverseRecordUrl: Generates URLs to open specific records or create new records in the Dataverse web interface
AppUniqueNameparameter to specify app by unique name (automatically queries appmodule entity including unpublished apps to resolve the app ID)AppIdparameter as an alternate to directly specify the app IDFormIdparameter to open specific formsConnectedOrgPublishedEndpoints["WebApplication"]for the correct base URL (fixes issue whereConnectedOrgUriActualreturned the XRM services path)DefaultParameterSetNameto avoid parameter set conflict when no App parameter is specifiedGet-DataverseMakerPortalUrl: Generates URLs to open the Power Apps Maker Portal for the connected environment
TableNameparameter to open a specific table in the maker portal (table context)ConnectedOrgIddirectly instead of making an extra WhoAmI network callGet-DataverseAdminPortalUrl: Generates URL to open the Power Platform Admin Center environment hub for the connected environment
ConnectedOrgIddirectly instead of making an extra WhoAmI network callAdded comprehensive documentation for all three cmdlets in the
docs/folderAdded URL generation documentation in
docs/core-concepts/url-generation.mdwith examples and best practicesUpdated README.md to link to the new URL generation documentation
Added 8 E2E tests in
Rnwood.Dataverse.Data.PowerShell.E2ETests/Urls/UrlCmdletTests.cs, all verified against a real Dataverse environmentTesting
Checklist
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.