November Happy Hour will be moved to Thursday December 5th.

Export & Import EPiForms

Vote:
 

Hi,

We are setting up a new environment for our Editors to do some major content changes for our rebranding based on Current live EPiserver DB.

Editors will be doing extensive content changes with copied DB from live.

After a couple of months, we will switch our live site to the DB where Editors have been doing their changes.

At that moment we will require to move FORMS data from current live DB to new DB where editors have been adding the contents.

How? Best Approach? Issues we might have?

(EPi Project feature is not a good option for us)

Best Regards

Khurram

#204799
Jun 18, 2019 15:59
Vote:
 

Hi,

You can do that by following:

  1. Export and import your form structure, make sure they are the same in 2 DB.
  2. Setup 2 site: source and target site with the 2 DB.
  3. In source site: Using ServiceLocator to get IPermanentStorage object which allow you manipulate with the Forms data. Use the service to load form data then save data (serializable object) to somewhere.
  4. In target site: Create a map that can tranlsate from source field (ex: __field_123) to target field (ex: __field_456). Forms used pattern __field_{ContentId} to generate fields. So you need to know element ID (element is a content) of both 2 site.
  5. Load your saved data, create Submission base on the data using your map above (replace field name __field_123 with new field name __field_456)
  6. Use IPermanentStorage to save data to target site.

Hope this helps.

#204829
Jun 19, 2019 9:51
Vote:
 

Do you mean there is no way other than coding this solution?

We are talking here each and every form created on Source DB.

#204832
Jun 19, 2019 11:36
Vote:
 

There is no feature that allows you import form data. So you need to code for that.

#204833
Jun 19, 2019 11:56
Vote:
 

Time for a new addon than, Thanks :) 

#204834
Jun 19, 2019 12:14
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.