0

Set related record

How do I set a related record programatically. For example, if I had a Contact with a Company field that linked to a Company record. How do I set the company record? I've tried passing the object and it doesnt work:

let CO := (create Company);
let C := (create Contact)
C.Company = CO??

Thanks

1 reply

null
    • Birger_H
    • 4 yrs ago
    • Reported - view

    Almost :-)
    Please note the difference between " = " and " := ".
    " = " does compare two values and returns true if these are equal or false if not.
    " := " will allocate values.

    So it works like this:
    –––
    let CO := (create Company);
    let C := (create Contact);
    C.Company := CO
    –––

    Birger

Content aside

  • 4 yrs agoLast active
  • 1Replies
  • 853Views