Skip to main content
Question

convert Data Table variables into Dictionary variables

  • March 7, 2023
  • 1 reply
  • 685 views

Forum|alt.badge.img

I have previously written code by multiple people that I have been tasked with updating. I have to convert Data Table variables into Dictionary variables. I would appreciate some assistance in doing this. 

This topic has been closed for replies.

1 reply

Shreya.Kumar
Pathfinder Community Team
Forum|alt.badge.img+14
  • Pathfinder Community Team
  • May 19, 2025

for the benefit of anyone who comes across this thread - here’s how I would go about it, assuming the table and dictionary variables have already been created

  • loop through each row in the table, store the record in a record variable
  • Add a Dictionary: Put action and define the variable values as in the example. You can even assign the value from a row to a variable and specify that using the Variable option, instead of Static value