How do I create a dictionary from two variables?

I have an array from which I am obtaining the date field:

local!weeks: index(
    ri!casualWorkSchedule,
    "weeks",
    {}
  ),

I then have a second variable for hours on which I do a calculation on the passed array:

local!proposedHours: tointeger(
    a!forEach(
      items: ri!casualWorkSchedule,
      expression: rule!CAT_calculateProposedHoursFromCasualWorkSchedule(tempWorkSchedule: fv!item)
    )
  ),

From these two variables I wish to create a dictionary such as:

Any suggestions on how this may be achieved would be appreciated.

Thanks

Irene Best

  Discussion posts and replies are publicly visible