Customer Portal

Question regarding a transformation

Comments 2

  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    Hello Evangeloslef,
    I might be missing some crucial parts of your use case but from what you described, it seems there might be an easier way of how to approach this challenge. I am also a little bit on the fence as to how exactly the input data looks like. Therefore, I took the liberty of manufacturing a set of examples demonstrating various scenarios:

    • incrementID.grf
      I assume that there is a set of data without IDs and the goal is to set the ID on each record with an incremental number at the end. Worth noting is that I took advantage of the sequences feature in CloverDX.

    • incrementID2.grf
      This is the same idea but without using sequences but a simple incrementing variable inside the Reformat component instead.

    • incrementID3.grf
      I don't assume the set of data and I only work with the total count. I am using the Normalizer component to create multiple IDs with the desired format based just on the input count of records.

    • incrementID4.grf
      This is the fourth scenario that I perceived as possibly desired from your question. Again, I assume a set of data without IDs and I also assume that you would want to increment the millisecond "suffix" at the end of the ID. Worth noting is the transformation code of the Reformat component where I resolve the milliseconds separately and then add up an incremental number for each record.

    Kind regards,
  • Avatar
    evangeloslef
    0
    Comment actions Permalink
    Hello Vladimir Barton,

    That was really helpful.
    Actually incrementID2 is what I needed and I now understand better how to use it next time.

    Thank you for the help,

    Evangelos Lefkonikiatis

Please sign in to leave a comment.