Marwan
12/17/2024, 1:31 PMrecmachcustrecord_psg_ei_email_recipient_cust
I am trying to add a row to it using suitescript but I keep getting this error
{"type":"error.SuiteScriptError","name":"FIELD_1_IS_NOT_A_SUBRECORD_FIELD","message":"Field custrecord_psg_ei_email_recipient_cust is not a subrecord field.","id":.......
This is my code
let recipient = context.newRecord.getSublistSubrecord({
sublistId: "recmachcustrecord_psg_ei_email_recipient_cust",
fieldId: "custrecord_psg_ei_email_recipient_cont",
line: 0,
});
I tried other IDs but nothing worked
Any easy way to know what is the ID of the field that holds the subrecord?
Do I understand this correctly?battk
12/17/2024, 3:12 PMbattk
12/17/2024, 3:12 PMMarwan
12/17/2024, 3:13 PMMarwan
12/17/2024, 3:13 PMMarwan
12/17/2024, 3:14 PMCreate the new subrecord with the Record.getCurrentSublistSubrecord(options) method. This method takes two arguments:
A sublistId, which identifies the sublist.
A fieldId, which identifies the field on the sublist that contains the subrecord. In the Records Browser, the field that holds the subrecord is always identified as a field of type summary.
Then there is a special field that holds the subrecord... I can't identify it.battk
12/17/2024, 3:14 PMbattk
12/17/2024, 3:14 PMMarwan
12/17/2024, 3:14 PMbattk
12/17/2024, 3:15 PMMarwan
12/17/2024, 3:15 PMMarwan
12/17/2024, 3:15 PMbattk
12/17/2024, 3:16 PMMarwan
12/17/2024, 3:16 PMMarwan
12/17/2024, 3:17 PMbattk
12/17/2024, 3:18 PMbattk
12/17/2024, 3:19 PMMarwan
12/17/2024, 3:20 PM