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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add a row in canvas app
Power Apps
Unanswered

Add a row in canvas app

(0) ShareShare
ReportReport
Posted on by 4

Hi Team,

I am not able to add a row in canvas app 

It has 1:N relationship.

It is embedded on crm.

The canvas app is using one entity which is having four required columns but i am using only one primary column in a formula like this Patch('XYZ', Defaults('XYZ'), {Name: ""});

Here Name column in XYZ data source entity is primary key but there are also three more fields which are required.

I am able to see new rows in dataverse but not in canvas apps and same on crm.

 

 

Categories:
  • AhmedSalih Profile Picture
    6,680 Moderator on at

    Hello, @sisodiahrithik, have you refreshed your data source after the Patch function? You can use the Function Refresh(DataSourceTableName)

     

     

    Regards,

    Ahmed

    If my reply helped you, please give a 👍. And if it has solved your issue, please consider a 👍 & Accepting it as the Solution to help other members of the community find it more.

    My Blog: www.powerplatformplace.com

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @sisodiahrithik 

    Patch('XYZ', Defaults('XYZ'), {Name: "", 
     requirefield1:somevalue, 
     requiredfield2:somecontrol.Selected.Value,
     etc...}
    )
  • AhmedSalih Profile Picture
    6,680 Moderator on at

    @sisodiahrithik, Check my solution in this post https://powerusers.microsoft.com/t5/Building-Power-Apps/Refresh-Form-Page-after-Save/m-p/1711254#M435523

     

    Regards,

    Ahmed

    If my reply helped you, please give a 👍. And if it has solved your issue, please consider a 👍 & Accepting it as the Solution to help other members of the community find it more.

    My Blog: www.powerplatformplace.com

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 350 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard