Try assigning a record as below, then check the Custom Data inspector in Omniplan.
Code:
tell application "OmniPlan"
tell first document
set oTask to make new task
set recCustom to {surname:"Svejk", rank:"footsoldier", age:"28"}
set custom data of oTask to recCustom
end tell
end tell