+ Start a Discussion
Tufayel AhmedTufayel Ahmed 

Creating a clone button for custom object that clones line items.

We have a custom object, Purchase Request, that we'd like to clone along with its line items. Currently, we have the native "clone" button that only clones the Purchase Request itself but does not clone with the Purchase Request Line Items. Any help would be appreciated!
Hi Tufayel,
Mark as best answer, If it resloves !!​
Please go through below link

Mark as resloved if it helps :) :)
Bhanu Prakash
visit ForceLearn.com (https://www.forcelearn.com/)
Tufayel AhmedTufayel Ahmed
Hey Bhanu,

Thanks for your prompt response. This was certainly helpful. I have done all steps mentioned in the article you provided and tried testing. When I went to clone the Purchase Request, the button works and redirects me to the page asking for which child objects I'd like to clone. However, the child objects (or line items) are not available to select.
Shruti SShruti S
I think you can do this with Flows. Take a look at this - https://automationchampion.com/tag/clone-opportunity-with-opportunity-products/

Please let me know in case of any queries.