How can you sort the Input Schema fields after dragging onto mapper?
I have a quite large excel file (>150 columns) and need to sort the mapped fields precisely for target destination. I use File Reader > Excel Parser > Mapper…
At the moment the fields run A, B,C…BX,BY…GZ. However after dragging the Input Schema fields onto the Mapping Table they are re-ordered A, AA, AB …GY,GZ… X,Y,Z. I need the target schema to be ordered exactly how they are done in the original input. How can this be done?
I tried Sort Snap and Sort Path as $ , $A , just various combinations to no success
Any suggestions on how to avoid ‘manually’ having to set the Fields in the default order. Assume that the default order is mandatory.
@Charles,
Like Patrick, I was also thinking Velocity (VTL) as a solution, but as I tried to solution your original post, the Workday namespace convention in the property names adds some complexity. I don’t know if Velocity beats the null-safe mapper for your particular use case, but it can be good info for your tool belt in the future.The kind of ugly solution I came up with (in a one-liner) is:
[ { "output" : #set ($pd = $['wd:Project_Data']) #set ($ed = $pd['wd:End_Date']) #if (${ed}) ${ed} #else null #end } ]
I’m not well versed in VTL, so there’s likely something a little cleaner than the above.