Options

Get a table from a FieldRef

amadman114amadman114 Member Posts: 36
Howdy,

I'm trying to create a codeunit that manipulates data in two separate tables, which I would like to be parameters. Since C/AL won't let you define blank records as parameters, can I use the FieldRef datatype to get the record value?

Any workarounds would be great too,
Thanks,
Dan

Comments

  • Options
    krikikriki Member, Moderator Posts: 9,090
    Convert the record in a recordreference and then call your function that accepts recordreferences.
    In the function you can work with the recordreferences, keyreferences, fieldreferences.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.