/duplicate_form_resource

Account management tool which duplicates forms and resources across organizations in Device Magic

Primary LanguagePython

duplicate_form_resource

Account management tool which duplicates forms and resources across organizations in Device Magic. This tool utilizes pydevice.

Supports: Select questions, Attached files, and Calculated questions

Installation

Clone or download the zip file and extract manually.

Install requirements

pip3 install -r requirements.txt

Usage

Navigate to the directory where the script exists. Open the duplicate_form_resource.py file and edit dm_one_args and dm_two_args variables with the required organization details. For more information on these values and how they're utilized, see here.

Next, edit the form_ids variable to include the form id's of the forms you'd like to copy from dm_one to dm_two. These values can be captured using the methods described in this article.

Run the script with the command python3 duplicate_form_resource.py.