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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

issue while updating record in canvas

(0) ShareShare
ReportReport
Posted on by
i got a senario to create a activity app , which will show all activities in canvas app, i already build it and issue is raising at updating a record . i have a feild called regarding for that i can not take it direclty due to its complex data type so iused patch function and to give data to that feild i used two drop downs one shows entities one shows records of the entities . so when we click it will take and create the record .but while UPDATING ITS CREATING ONE MORE RECORD AND ALSO ITS NOT EDDITING THE EXISTING ONE ITS CREATING 2 RECORDS/

If('Main Drop Down (Phone Edit)'.Selected.DisplayName=/Leads/,Patch('Phone Calls', Defaults('Phone Calls'),{ Regarding: 'Leads Drop Down(Phone Edit)'.Selected,  Subject: 'Subject (Phone edit)'.Text,'Phone Number':DataCardValue7.Text});Navigate('Phone Gallery',ScreenTransition.Fade),false);//For Leads

 

If('Main Drop Down (Phone Edit)'.Selected.DisplayName=/Accounts/,Patch('Phone Calls', Defaults('Phone Calls'),{ Regarding: 'Accounts Drop Down(Phone Edit)'.Selected,  Subject: 'Subject (Phone edit)'.Text ,'Phone Number':DataCardValue7.Text });Navigate('Phone Gallery',ScreenTransition.Fade),false);//For Accounts

 

If('Main Drop Down (Phone Edit)'.Selected.DisplayName=/Opportunites/,Patch('Phone Calls', Defaults('Phone Calls'),{ Regarding: 'Opportunites Drop Down(Phone Edit)'.Selected,  Subject: 'Subject (Phone edit)'.Text,'Phone Number':DataCardValue7.Text});Navigate('Phone Gallery',ScreenTransition.Fade),false);// For Opportunites/ this is the patch function please give me the proper solution 

 

thanks in advance

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 73 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans