I have Custom list in which i have one Multi lookup column in that user select data from front end then i have to add that data in lookup column.

But if user not select any data then i have to add null or blank.

So how can i do this.

I am using REST API for POST Request.

Any Help highly Appreciated.

  • 2
    Just do not specify the lookup column in the request body. That's all – Atish Dipongkor - MVP Sep 1 '16 at 5:03
  • that i know .but have other value also in body. i have to create two request body if it null then without it and if have value then other. – Vishal Thakkar Sep 1 '16 at 5:10
  • i am thinking like if i pass "" or "null" or other so i didnt need to create multiple request body as per condition. – Vishal Thakkar Sep 1 '16 at 5:11
  • You can pass null also. see my answer. – Atish Dipongkor - MVP Sep 1 '16 at 5:33

Just do not specify lookup column in request body or set lookup value to null

"__metadata": {"type": "SP.Data.[List Name]ListItem"},
"Title": "[Title]",
"[Internal Name of lookup the column]Id": null
  • if i want textfield as null then how can i pass null?? – Vishal Thakkar Jun 14 '17 at 7:22

In multi lookup column i have passed value like below and its works.

"[Internal Name of lookup the column]Id": {'results':[]}

In single item look up you have to passed like below as per @AtishDipongkor Answer

"[Internal Name of lookup the column]Id": null
  • That means your lookup column allows multiple value. You have not mention in the question! – Atish Dipongkor - MVP Sep 1 '16 at 15:35
  • @AtishDipongkor sorry i forgot to mention. – Vishal Thakkar Sep 2 '16 at 4:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.