Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tim 1193 posts 2675 karma points MVP 3x c-trib
    Jun 17, 2015 @ 10:08
    Tim
    0

    Is It Possible To Import Forms and Maintain GUIDs?

    When you export a form, it zeroes all of the GUIDS (presumably so that you can create multiple instances from the form template).

    Is it possible to set all of the GUIDS in the file so that you can import a form and maintain all of the GUIDs? This is so that we can export forms from dev to live and maintain the GUIDs (which we use in some our Xslt Email transforms, s they don't change, unlike the captions).

  • Comment author was deleted

    Jun 17, 2015 @ 10:12

    If it's for moving between environments you could simply move it on db level

    Or I can also share the code that does the export and you can modify it so that it doesn't zero the GUIDS

  • Tim 1193 posts 2675 karma points MVP 3x c-trib
    Jun 17, 2015 @ 10:16
    Tim
    0

    Thanks for the quick response!

    :)

    I can manually set the GUIDs, the form is only four fields. Will the import pick up the GUIDs already, or will I need to code my own import?

  • Comment author was deleted

    Jun 17, 2015 @ 11:44

    Looking at the code you'll need to code your own custom import that doesn't clear the id's https://gist.github.com/TimGeyssens/a0a9988a68705cf66800

  • Tim 1193 posts 2675 karma points MVP 3x c-trib
    Jun 17, 2015 @ 12:38
    Tim
    0

    Thanks Tim! That's given me everything that I need to get this working :)

  • Comment author was deleted

    Jun 18, 2015 @ 07:43

    Super, glad it's working!

Please Sign in or register to post replies

Write your reply to:

Draft