Forum Discussion

achava02's avatar
achava02
New Contributor III
5 years ago

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

4 Replies

    • achava02's avatar
      achava02
      New Contributor III

      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

      • ptaylor's avatar
        ptaylor
        Employee

        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"
                  }
                ]
              }
            }
          }
        ]