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 2655 karma points 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).

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jun 17, 2015 @ 10:12
    Tim Geyssens
    0

    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 2655 karma points 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?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jun 17, 2015 @ 11:44
    Tim Geyssens
    100

    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 2655 karma points c-trib
    Jun 17, 2015 @ 12:38
    Tim
    0

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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jun 18, 2015 @ 07:43
    Tim Geyssens
    0

    Super, glad it's working!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies