Hi All,
I have located several posts detailing how to Clone Records using PowerFX within Modern-Driven Apps (example link below) However, for some reason Im not able to Clone Opportunities, Accounts and Contacts work fine and I cant figure out why. I have checked and its not due to any Business Required fields at Opportunity level. Does anyone know if there is a reason why Opportunities will not Clone? Please see code below for Account and Opportunity
Opportunity code:
ForAll(
Self.Selected.AllItems,
Patch(
Opportunities,
Defaults(Opportunities),
{
Topic: Self.Selected.Item.Topic & " (Copy)"
}
)
);
Notify(“The records selected have been cloned.”)
Account Code
ForAll(
Self.Selected.AllItems,
Patch(
Accounts,
Defaults(Accounts),
{‘Account Name’: Self.Selected.Item.‘Account Name’ & " (Copy)"}
)
);
Notify(“The records selected have been cloned.”)