Need help with NetSuite Deposit creation using NetSuite Create snap

Dear Members, I need an insight of how to create NetSuite Deposit using NetSuite Create snap. During the deposit we link the payment transactions (using $record.paymentList.depositPayment[*]) to the deposit. I would like to know, which attribute do we use to link it.

I am herewith attaching you the screenshot of the pipeline. Any help is greatly appreciated. If you have any sample pipeline that will be very helpful.

Regards,
Aj

I believe you’re looking for entity.internalId.

I tried it and I am getting the following error.
@type=ERROR, platformCore:code=USER_ERROR, platformCore:message=Adding new line to sublist payment is not allowed

Yes, I was mistaken. I was just able to get it to work with input data like this:

[
  {
    "record": {
      "account": {
        "internalId": "139"
      },
      "postingPeriod": {
        "internalId": "3"
      },
      "paymentList": {
        "depositPayment": [
          {
            "id": "418377",
            "deposit": "true"
          }
        ]
      }
    }
  }
]

Thank you Patrick. I tried it i was able to create deposit.