Forum Discussion
Add a New Managed Property
For new columns I managed to understand the correct model to do but I'm trying to track existing columns from my Sharepoint list and this is difficult to achieve.
Step1:
Create a Managed Properties:
-Property name: any name (column name)
-Type: Text or some another kind ( when the column in sharepoint is a lookup, need I select the Text type?)
-The select a Searchable, Queryable, Refinable, Sortable etc... normally Retrievable Its enable to edit this field.
Step2
Search the column name in Crawled Properties:
- If Its already exist, need I to Mapping this crawled properties with Managed properties column name?
-Is its doesn't exist, need I to create a crawled properties and then to add a mapping with managed properties column name ?
Step3
Manually reindex and wait 1 hour and try do use in Graph API.
This is a little strange for me because at no point am I indicating which column I am adding a crawled property from, only in the Graph API do I indicate the column name and who doesn't always match exactly the same name in Sharepoint.
It's the first time I'm doing this so I couldn't understand the reason for some columns sharepoint automatically create all this traceability and not create for other columns.
Thanks in a advance,
OroskiBR01 You cannot create crawled properties manually in SharePoint.
Crawled properties will be automatically created by the SharePoint when you create the columns and add data to those columns (after the search crawl runs - usually within a hour after adding the data). Crawled properties may not be created if you have created the columns but not added any data in it.
Usually crawled property names are similar to the column names in the list (some characters related to data type maybe available in the names). After creating the managed properties, you HAVE TO map those with the related crawled properties manually.
If you want to use the columns in the SharePoint Search API or Graph API calls, you have to use the managed property names (not column names in the list or crawled property names). Hope it helps!
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.