How to copy existing Automation Hub Ideas from one Tenant in an Automation Cloud Organization to a tenant in a different Automation Cloud Organization?

How to copy existing Automation Hub Ideas from one Tenant in an Automation Cloud Organization to a tenant in a different Automation Cloud Organization?

Copying / duplicating the ideas from Automation Hub service in a tenant in an Automation Cloud Organization to an Automation Hub instance in a tenant in a different Cloud Organization from the backend is not currently feasible.

The movement of an Automation Hub instance from one tenant to another in a Cloud Organization is feasible. Automation Hub can also be moved from one Cloud Organization to another with certain limitations (Users are not moved to the new organization). Once this movement is done, the Automation Hub instance will not be available in the source tenant.

To copy/duplicate ideas across Automation Hub instances between different organizations, Automation Hub Open APIs can be used to copy the Ideas. This involves accessing both the Source and Destination Automation Hub instances through Open APIs. The steps are as follows:

  1. Generate the Token for both the Source and Destination instances. Follow instructions listed Generate your Token from Automation Hub documentation for generating the token
  2. Execute the API GET /automations?pre=all to get all the automation idea from the source Org (Use Source Org token and other details). Refer to the article Making Automation Hub API Calls for instructions on making Automation Hub API Calls
  3. Capture the automation ID of each of the ideas that need to be copied from the response from Step 1
  4. Execute the API GET /automation/{id} and copy the JSON response
  5. Connect to the destination Org using Destination Automation Hub instance token
  6. Execute the API GET ideas/schema to get the sample schema of the ideas to be created in the Destination Instance (Schema is the metadata of the instance which has all the list of fields needed)
  7. Construct a payload using the field values from the Json downloaded in the GET /automation/{id} response and map them manually to each field for the POST /ideas-from-schema endpoint
  8. Execute the API POST /ideas-from-schema endpoint for the Destination Automation Hub instance using the Json payload constructed in Step 7
  9. If everything goes well, the response will contain statusCode ": 201 Created" and the idea will be available in the Destination Automation Hub instance UI

  1. Repeat this process (Step 4 to Step 9) for each Idea ID that needs to be copied over.