Migrate Custom Tokens

 7 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
SP
Veteran Member
Posts: 122
Veteran Member
    I have the need to migrate a large number of custom tokens (tokendef) from one environment to another.  Does anyone have experience and know of a clean way to accomplish this other than re-keying in tokendef?

    Can it be as simple as a rngdbdump/importdb of the specific records from the gen table 'executable' (presuming the category exists)??
    Jeff White
    Veteran Member
    Posts: 83
    Veteran Member
      Try: dmpunivtkns -u
      Jeff White
      Veteran Member
      Posts: 83
      Veteran Member
        Sorry. Then to load them use: ldunivtkns outfile.dmp
        SP
        Veteran Member
        Posts: 122
        Veteran Member
          I think that gets every custom tokendef from one environment, along with all categories.  I don't want to migrate all the custom categories, but rather just the tokens for one specific category.

          I have dumped executable using "rngdbdump -ct executable -v CATEGORY=PREMCOLL > premium_collections_exe.csv and I have loaded it using importdb.  Everything looks good in the target environment with the exception of the "Title" in tokenddef.  Title is not a field in the EXECUTABLE table. This tells me I'm missing something.    :-o

          Do you have any idea what table houses the "Title" value as seen in tokendef under "User Form ID"
          Jeff White
          Veteran Member
          Posts: 83
          Veteran Member
            Wouldn't it be easier to just migrate them all, then delete the categories that you don't want?
            SP
            Veteran Member
            Posts: 122
            Veteran Member
              Jeff,

              My concern with that approach is where existing tokendef names are the same on the development server vs. production, but where the Command params are different. I would essentially be overwriting production with development parameters.

              After some research, I was finally able to use dmpunivtkns/ldunivtkns with a little bit of clean up. One particular category has over 100 tokens. So I had to be very careful.

              For what it's worth, the table I couldn't find is named, aptly enough, "TITLE." Duh!! (Thanks Kwane) Unfortunately I couldn't easily use rngdbdump on that table, because there was no good key value for the new tokens, and rngdbdump doesn't accept wildcard when dumping by field value (at least not that I could figure out.)

              Thanks for help.
              Stuart Perkins
              Basic Member
              Posts: 18
              Basic Member
                Very old thread and probably not much use anymore...but...

                rngdbdump will allow a range of values in the form of "field=from:to" 
                Orlando Gray
                Advanced Member
                Posts: 35
                Advanced Member

                  Old, but great.

                  Thanks so much for this Stuart.