cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DuongVu
Regular Visitor

Power Fx Patch function in Command Button can not create Opportunity record ?

I tried to create a custom command that can clone a selected Opportunity on Main Grid but so far not succeeded.

(I input Topic, Customer, Accounts and Currency, like in form).

Somehow Patch function only works on some tables (like Customer Asset) but not on others (Opportunity, Order...)

 

Can someone help me with this problem ?

Many thanks.

2 REPLIES 2
SBax
Impactful Individual
Impactful Individual

Can you share the formula you are using to attempt to patch an opportunity please?

DuongVu
Regular Visitor

This is the formula i've tried:
Patch(Opportunities, Defaults(Opportunities), 
        {
            Topic: "Copy of " & Self.Selected.Item.Topic, 
            Account: Self.Selected.Item.Account, 
            Currency: Self.Selected.Item.Currency }
        );
Notify("Clone is done", NotificationType.Information)

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,335)