Currently we are working on Dynamics CRM 365 (online) version and we have requirement to Clone the case and all its associated records ( 1:N) on click of a button.
I have created a ribbon button on Case and Custom action and created a plugin to do this.
But in the plugin code to clone, i have assign each and every Fields to the new case from the parent case. (same for the associated record). Is there a way to assign the values to all fields of new case from parent case so that, in future if i have to remove or add some fields on case it should not break the logic.