Views:

Description

Clones a record and optionally can clone all 1:N & N:N records.

e.g. 1 Shows how to clone the current account entity along with all its related 1:M contacts and opportunities

Signature

Clone('entityname', 'guidofentity', 'relationshipname', 'ignorefields', 'enableprefix')

Example

Clone('account',[account.accountid], 'contact_customer_accounts', 'opportunity_customer_accounts', false)

e.g. 2 Shows how to clone just the account itself.

Clone('account',[account.accountid])

e.g. 3 Shows how to clone the salesorder entity, the related order detail records and ignore some fields for the clone process.

Clone('salesorder', [salesorder.salesorderid], 'order_details', SetIgnoreFields('new_clonethisorder', 'new_privatetaxnumber'), true)

Parameters

NameTypeDescriptionRequired
entitynamexxxxxxxxxxxx
guidofentityxxxxxxxxxxxx
relationshipnamexxxxxxxxxxxx
ignorefieldsxxxxxxxxxxxx
enableprefixxxxxxxxxxxxx

Notes: