Forum Discussion

AaronCygnarowic's avatar
AaronCygnarowic
Qrew Member
3 years ago

Codepage API_AddRecord

I have a codepage where I am calling the API_AddRecord. I can get all of my data to add except where I have lookup fields. How do you add the data to the lookup fields in your api call.

------------------------------
Aaron Cygnarowicz
------------------------------

2 Replies

  • Hi Aaron;
    You need to update the Related field. If it is a lookup field, that means value depends on related record.
    So you need to update Related field with Record ID#(key field) of master table record. If  the key field is different than Record ID# field, then you need to use the value of that key field to update your related field.

    ------------------------------
    Razi Demirtas
    ------------------------------
    • AaronCygnarowic's avatar
      AaronCygnarowic
      Qrew Member
      Thank you. That worked.

      ------------------------------
      Aaron Cygnarowicz
      ------------------------------