Hi All,
Is it possible to clone a tenant with its all application and data?
Thanks and Regards,
Ithrees
Hi Ithrees,
Currently we does not have a option to clone the tenant with all his applications and data.
Could you please let us know the exact use case?
Thanks,
Rajkumar
Hi Rajkumar,
Thank you for your reply.
In my case, I have set of applications in a tenant where the master data for many objects have been added with their relationships. I want to clone the same thing to another tenant where I can only create different set of users rather create a new tenant, put all generated applications, update all the master records and so on..
Hope you would have got my point.
Hi Orchid,
Of course we can go with seed records but we have to upload the images one by one if any records have image field.
Even though the latest version makes easy to seed records but it is not the case when you try to remove them you have to do one by one. All together we may have to spend some time to have a similar tenant.
Thank you for reply.
Ithrees.
Hi Ithrees,
Currently seed record cannot copy file upload and image upload fields from a record, since this is not yet available I may refer you to create an enhancement into out ideas page here, but here is something I tried that works also via rbv_api.setBinaryFieldValue.
1. Create an extra "Textarea" field to store the binary value of your Image Upload field via rbv_api.getBinaryData - do this via trigger
2. Create an object script trigger that run the rbv_api.setBinaryFieldValue, no timing. See sample code.
* If you want to copy also the file name then create a "text" field that stores the file name of your Image upload and will replace the testName.jpeg in the code below with the text token
rbv_api.setBinaryFieldValue("objectname", {!id}, "image_field", "{!binary_textArea}", "text/plain", "testName.jpeg");
3. Before exporting the XML make sure that the binary has been captured
4. Install the XML to other tenant
5. Do the Run trigger to the object with the code in step #2
Hope this may help.
Regards,
Orchid