Example: Using the Clone Object Quick Action (CAD)
1 min
use the clone object to copy and overwrite specified fields from a business object record this example will use the clone object to clone an incident record in the incident workspace while updating values for various fields status update the value to prompt the user to select a status owner update the value to make the user who is cloning the record the default owner owner team (team) update the value to make the user's team the default cost remove values from this field when cloning total time spent remove values from this field when cloning lastmodby update the modified date to match the current user's date and time see clone object action docid\ ryi65nquq4 8ge9wzbt z clone object action from the configuration console, click build > automation tools > quick actions to open the actions manager workspace the list of business objects that have actions appears click add/edit for the incident business object the actions center appears click the create new actions tab select clone object from the list of options from the clone object page, configure the parameters docid\ ryi65nquq4 8ge9wzbt z choose multiple fields to update when you clone the record update the value for status with a user prompt choose status from the field name dropdown list create a user prompt by entering $(prompt("select a status for the new incident", "")) in the field value parameter click to add a row update the value for owner to make the default owner of the new record the person who runs the clone object choose owner from the field name dropdown list change the default owner to the user who runs the by entering $(currentloginid()) in the in the field value parameter click to add a row update the owner team (team) field to be the same as the user who runs the clone object choose owner team (team) from the field name dropdown list enter $(currentuserteam()) in the field value parameter to update this field with the acting user's team click to add a row prevent copying values from specific fields; for example, cost and total time spent choose the field you want to leave blank in the cloned record ( cost and total time spent in this example) for each field you choose to leave blank, enter 0 in the corresponding field value parameter click to add a row change the lastmodby date to the current date and time choose lastmodby from the field name dropdown list enter $(currentdatetime()) in the field value parameter click save navigate to an incident record run the clone object quick action you created to observe the outcome
