Forum Discussion

Samridhi_Gupta's avatar
Samridhi_Gupta
Copper Contributor
Jan 24, 2023

Can a reusable SPFX be built to use it on either Contact list or Company list ?

We are trying to build a reusable custom webpart, 
1. Lets consider we have a List "Contact" which contains the field name, Address, Contact Number.
2. A list named "Company" which contains the field name Company name, Company Address, Pin code.
3. The data type of the columns in both the lists are the same.
4. We want to build a webpart which displays the fields in a certain format or UI.
5. Idea is to build one webpart and have custom properties (List Name, Column A, Column B, COlumn C), 
    List Name is either Contact / Company
    Column A is either Name / Company Name
    Column B is either Address / Company Address
    Column C is either Contact Number / Pincode

Resources