Hi @Niels Søgaard LønbergSorry for the late reply.Let me know if the script comes through.
Pass in a CRM Parameter "PrimaryControl" this is how you can pass the execution context.
There is limitation of 2000 characters in the URL, so hopefully you form is not very busy. This is version 1 of the script, in the next version I will setup a custom entity where you may set which attributes you would like to copy as part of the cloning.
Please give it a go on your sandbox environment first and let me know how you get on if you or anyone else decides to use it.
If you've found this thread useful, dive deeper into User Group community content by role