cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
v-shsi16
Microsoft
Microsoft

Form GUID creation

This is my first portal power app so please bear with me.

 

Scenario:

I have a table which uses GUID as a primary key. Now in portal app I have a form and when a new record is created I want to automatically assign a GUID to it.

Earlier I had a canvas app so I was generating a GUID on submit of the form which used to get saved in the backend.

I want to do the same in portal apps as well.

Kindly help me in getting this.

 

Thanks,

Shreyansh

3 REPLIES 3
OliverRodrigues
Super User
Super User

Hi, is there any reason why you would want to generate the GUID yourself? 

The best practices is not to generate GUIDs manually, unless you really need for very specific scenarios

The OOB code will leverage the NEWSEQUENTIALID SQL function that will help with indexing and performance

 

Take a look at these articles for additional info:

https://community.dynamics.com/crm/b/crminthefield/posts/the-dangers-of-guid-newguid

https://docs.microsoft.com/en-us/sql/t-sql/functions/newsequentialid-transact-sql?redirectedfrom=MSD...

 




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User


Oliver Rodrigues


 

v-shsi16
Microsoft
Microsoft

Thanks Oliver, but I was generating means I was using GUID() function to generate GUID , but that was in CANVAS app. I want the same to be done behind (on select property) a Button in PORTAL POWERAPP

OliverRodrigues
Super User
Super User

Hi, is there any reason why you would want to generate the GUID yourself? 

 

The best practices is not to generate GUIDs manually.




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User


Oliver Rodrigues


 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,419)