Clone Records using PowerFX

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.”)

Do you get any kind of error message?

No error message at all, it runs through to the completion message ‘The records selected have been cloned’ I tried another test on the Case entity as well and it get the same issue as Opportunities where the record does not clone. It works fine at Account level.

I have got it working by using the below for Opportunities

ForAll(
Self.Selected.AllItems,
Patch(
Opportunities,
Defaults(Opportunities),
{
Topic:ThisRecord.Topic & " (Copy)",
‘Potential Customer’:ThisRecord.‘Potential Customer’,
‘Owner’:ThisRecord.‘Owner’
}
)
);
Notify(“The records selected have been cloned.”);