Home > CMS- Content Management System > Sharepoint > How to add additional Lookup fields via Schema.xml in SharePoint Add-in

How to add additional Lookup fields via Schema.xml in SharePoint Add-in

This post was most recently updated on July 31st, 2024

Hello folks,

Recently I was working on SharePoint Add-in app with two different lists. First is “Requests” and Second is “TimeSheetCategory”. “Requests” list fetching a lookup column “TaskCategory” from “TimeSheetCategory” list, but requirement changes and need another column “ORTCalculationPercentage” from “TimeSheetCategory” in “Requests” list.

In SharePoint OOB you can add additional column while creating a lookup column but in SharePoint add-in, there is no direct way. So I found the below solution which worked for me. Both “TaskCategory” and “ORTCalculationPercentage” are single line text.







Note: That the ID of the first field is referenced in the second field using FieldRef. ID value can be any random number for the second field. Don’t confuse between Static Name and a Name column. “DisplayName” you can see in below screenshot.

Here is my result after adding above xml snippet.

Look Up Additional Column

Hope you find it helpful. If you liked this article, then please share and comment.

This Article is TAGGED in , , , , , . BOOKMARK THE permalink.

Avatar photo
Chintan Upadhayay
I am a senior web developer with more than 4+ years experience in WordPress, PHP, MySQL, HTML, CSS, jQuery and other web technologies. I am the beginner in SharePoint and Learning SharePoint.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">