WEB Api

Hi All, 

I'm trying to pass JSON object in the startprocess but some how I'm not able to send all the attributes at one go 

Here is the sample JSON I'm passing 

{
"CompanyName": "Company",
"Category": "Information Technology",
"SubCategory": "COnsulting",
"Definition": "On Call",
"ShipToState": "AK",
"invoiceDetails": [
{
"InvoiceNumber": "3425638769",
"InvoiceDate": "1/28/2022",
"InvoiceValue": "400.00$",
"InvoiceDueDate": "2/22/2022",
"InvoiceBalance": "300.00$"

},
"InvoiceNumber": "3425638769",
"InvoiceDate": "1/28/2022",
"InvoiceValue": "400.00$",
"InvoiceDueDate": "2/22/2022",
"InvoiceBalance": "300.00$"

]
}

In the above JSON I was able to get all the individual attributes into the process model except the  Invoice details

Any help is much appreciated 

Thanks  

  Discussion posts and replies are publicly visible

Parents
  • That doesn't look like valid JSON to me - I think you need additional brackets around your second list of invoice numbers like this:

    {
      "CompanyName": "Company",
      "Category": "Information Technology",
      "SubCategory": "COnsulting",
      "Definition": "On Call",
      "ShipToState": "AK",
      "invoiceDetails": [
        {
          "InvoiceNumber": "3425638769",
          "InvoiceDate": "1/28/2022",
          "InvoiceValue": "400.00$",
          "InvoiceDueDate": "2/22/2022",
          "InvoiceBalance": "300.00$"
    
        },
        {
          "InvoiceNumber": "3425638769",
          "InvoiceDate": "1/28/2022",
          "InvoiceValue": "400.00$",
          "InvoiceDueDate": "2/22/2022",
          "InvoiceBalance": "300.00$"
        }
      ]
    }

    Can you update your request to include that valid JSON?

Reply
  • That doesn't look like valid JSON to me - I think you need additional brackets around your second list of invoice numbers like this:

    {
      "CompanyName": "Company",
      "Category": "Information Technology",
      "SubCategory": "COnsulting",
      "Definition": "On Call",
      "ShipToState": "AK",
      "invoiceDetails": [
        {
          "InvoiceNumber": "3425638769",
          "InvoiceDate": "1/28/2022",
          "InvoiceValue": "400.00$",
          "InvoiceDueDate": "2/22/2022",
          "InvoiceBalance": "300.00$"
    
        },
        {
          "InvoiceNumber": "3425638769",
          "InvoiceDate": "1/28/2022",
          "InvoiceValue": "400.00$",
          "InvoiceDueDate": "2/22/2022",
          "InvoiceBalance": "300.00$"
        }
      ]
    }

    Can you update your request to include that valid JSON?

Children