web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Model driven unique id...
Power Apps
Unanswered

Model driven unique identifier is not populate by itself once the record is created in CDS

(0) ShareShare
ReportReport
Posted on by 13

Hi all, 

I was wondering if someone ever face this issue before, I created a model driven app with forms, views, business rules to set some fields by default for the entity. But the main problem is that when I created a new record for the entity "Employees", the field "Id" is an unique identifier and an auto-incrementable number in SQL Server,  that means that is supposed to auto-populate the field by itself in CDS Common data services but is not getting populate (Id stays blank), but the new record is created correctly in SQL Server because I created a flow that once a new record is created in CDS it will create a new record in Azure SQL server, this also will apply changes for the update and delete. Any ideas on how to solve this? 

1. I created an entity "Employees" with all the fields and I set a business rule in order to set some values by default. 
2. I created a form for the entity so the users can create new records. 

3. I created a view where the user can visualize all the fields and records from the "Employees" entity. 

4. I created a flow in order to connect the CDS and the azure SQL Server once the record is created, updated or delete. 

5. I created a new record for the entity "Employees" but the field "Id" (unique identifier and auto-incrementable number) is not being populated in CDS (Common data services) but in SQL server the "Id" is created successfully. 

FlowIssue.pngFlowIssue2.png

Please let me know if you need more details. 

 

My e-mail is:  pengwenying1994@gmail.com


Thanks in advanced, 

Wen Ying.

I have the same question (0)
  • Verified answer
    WenYing94 Profile Picture
    13 on at

    Hi all, 

    I was able to solve this problem by setting some configuration by going to the specific entity and edit the properties of the field "Id". Because once I created the entity, the data type of this field was a text by default and the only thing that you need to consider is to put the correct value for the field "Seed value", once you match the number that SQL Server is going to create by default the next time for "Id", everything will work as expected. Do some testing and you will be able to create new records with an auto-incrementable Id in CDS.

    FlowIssue3.png

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard