Jump to content

CE Comms Dev

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by CE Comms Dev

  1. Following this guide https://developer.sage.com/accounting/quick-start/preparing-to-create-test-data/

     

    Each failing request has a line in the Postman console TypeError: Cannot read property 'id' of undefined , which is happening on the lines in the test, so maybe that is not related to the 422 error. 

    var setresp = pm.environment.get("invoice_metadata")
    var indexCount = parseInt(pm.collectionVariables.get("indexcount")-1)
    var invData = setresp[indexCount]
    invData[2] = bodyData.contact.id
    invData[3] = bodyData.id
     
×
×
  • Create New...