Update Reference Field / Update All References Field

Update Reference Field / Update All References Field

You can use this endpoint to update reference field from Customer or Job.
api/QuoteProcess/UpdateReferenceField

{
  "Customer": "string",
  "Job": "string",
  "ReferenceName": "string",
  "ReferenceValue": "string"
}

Please note UpdateReferenceField are used if you want to update one reference field at a time.
You can do bulk update by using this endpoint.
api/QuoteProcess/UpdateAllReferenceFields

{
  "Customer": "string",
  "Customer_References": [
    {
      "Value": "string",
      "Number": 0,
      "DefaultValue": "string"
    }
  ],
  "Job": "string",
  "Job_References": [
    {
      "Value": "string",
      "Number": 0,
      "DefaultValue": "string"
    }
  ],
  "QQDPKey": "string",
  "QuoteDetailProduct_References": [
    {
      "Value": "string",
      "Number": 0,
      "DefaultValue": "string"
    }
  ]
}

Example with this job.
Below for the existing value


By posting this payload
{
  "Job": "02797",
  "Job_References": [
    {
      "Value": "EndPoint Testing",
      "Number": 1,
      "DefaultValue": ""
    },
    {
      "Value": 250,
      "Number": 2,
      "DefaultValue": ""
    },
    {
      "Value": "Value 3",
      "Number": 3,
      "DefaultValue": ""
    }
  ]
}

You will see this result on the screen.


You can map the value from GetReferenceField Endpoint.

Please note:

Our API end point will not check the data type you select in the reference.
Eg:
If in the Reference you put in "Number", and you pass on "String"
We will not throw an error, however the Reference value won't be updated.
You need to make sure the data that you pass using the correct Data Type.

You will get Number from Get


    • Related Articles

    • References - Add Reference in Tasks and QA

      Screenshots to be changed before article is released Capability to add Reference in QA and Task in Job details. (as per below image) Before:    After – Reference added below. How to add reference in Task.   1. Navigate to Admin > References  2. Under ...
    • References - Adding Invoice References

      Introduction Invoice reference definitions can be added via the ‘References’ screen: References List As with all references in printIQ, ‘Invoice’ references can be defined as: Text (free type) – Alpha numeric strings can be entered into the reference ...
    • References - Store (Inventory) Item References

      Introduction Thirty customisable ‘Item’ type reference definitions have been added to the existing reference types of Customer, Quote, Quote Product, Product Catalogue, Job, Rework, Component, Task and Invoice references: Item Type References These ...
    • Get Reference Field Endpoint

      With printIQ API, you can see the reference field from the job using Get Reference field. Endpoint: api/QuoteProcess/GetReferenceFields { "Customer": "string", // Will return Customer Reference "Job": "string" // Will return Reference that's ...
    • References - Add to a Quote or Job

      You can add ‘Reference’ fields into IQ for additional job information. Any reference fields will show on the quote page under the ‘product description’: ​     And on the job details page under the:       To access the ‘References’ admin page, go to ...