Notifications
Announcements
// Fetch the 'Environment ID' of current environment // Store the in the 'varCurrentEnvironmentID' variable Set( varCurrentAppUri, First('Canvas Apps').AppOpenUri //Canvas Apps table ); Set( varCurrentEnvironmentID, Right( Match( varCurrentAppUri, "/e/.*(?=/a)" ).FullMatch, 36 ) ); // Use PowerAppsforMakers.GetEnvironments() and fetch all the environments under the tenant // Store Environments in to 'collAllEnvironments' collection ClearCollect( collAllEnvironments, AddColumns( Sort( PowerAppsforMakers.GetEnvironments().value, //the connector DataSourceInfo.DisplayName ), DisplayName, properties.linkedEnvironmentMetadata.friendlyName, Url, properties.linkedEnvironmentMetadata.instanceUrl ) ); // Filter 'collAllEnvironments' with 'varCurrentEnvironmentID' and fetch the current environment's URL Set( varCurrentEnvironmentURL, First( Filter( collAllEnvironments, varCurrentEnvironmentID in id ) ).Url );
SubmitForm(Form1); Set(varInvoice, Form1.LastSubmit); Set( varInvoiceUrl, Concatenate( varCurrentEnvironmentURL, "/main.aspx?pagetype=entityrecord", "&etn=cr597_invoices", //the table logic name "&id=", varInvoice.Invoices //GUID ) ); Patch( Invoices, // The table varInvoice, { myurl: varInvoiceUrl } //myurl is the column store the url ); Notify("Link written to column myurl", NotificationType.Success);
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 721 Most Valuable Professional
Michael E. Gernaey 320 Super User 2025 Season 2
Power Platform 1919 268