shubs
03/22/2021, 5:17 PMrecord.submitFields(options) but it needs to know the record type of the parent record. Do I have to use search.lookupFields(options) or is there a better way to source the record type of the parent record?Sandii
03/22/2021, 5:45 PMWatz
03/22/2021, 5:47 PMshubs
03/22/2021, 5:47 PMshubs
03/22/2021, 5:48 PMconst TXN_REC_TYPE =
      REC_TYPE !== "customrecord_crd"
        ? REC_TYPE
        : search.lookupFields({
            type: search.Type.TRANSACTION,
            id: TXN_REC_ID,
            columns: "type",
          });shubs
03/22/2021, 5:49 PMrecord.submitFields({
        type: TXN_REC_TYPE,
        id: TXN_REC_ID,
        values: {
          [TXN_CONTENT_FLD]: xmlAsString,
        },
      });Watz
03/22/2021, 5:52 PMshubs
03/22/2021, 5:53 PMWatz
03/22/2021, 6:07 PMWatz
03/22/2021, 6:08 PMSandii
03/22/2021, 6:26 PMtype or recordtype in a search returns vs the record.Type enumeration.  If this userEvent is only applied to the child record, then I do not believe you will catch changes that happen at the sublist level of the parent record.