Some columns are not visible in MS Graph result.

Shahab Matapour 25 Reputation points
2023-06-04T11:18:48.8533333+00:00

Hi guys,

Microsoft Graph Search will return all predefined columns such as (Id, Title, Created, ...) , I created a column, the name is 'EndDate' but it is not in search result (in both graph explorer and my code ). Do I need to do some settings in admin center for search to show that column? or should it be returned as usual? or something is wrong from my side.



var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new Microsoft.Graph.Search.Query.QueryPostRequestBody
{
	Requests = new List<SearchRequest>
	{
		new SearchRequest
		{
			EntityTypes = new List<EntityType?>
			{
				EntityType.ListItem,
			},
			Query = new SearchQuery
			{
				QueryString = "issue",
			},
			Fields = new List<string>
			{
				"id",
				"name",
				"contentclass",
				"title",
				"EndDate",
			},
		},
	},
};
var result = await graphClient.Search.Query.PostAsync(requestBody);
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,332 questions
0 comments No comments
{count} votes