The process of building custom solutions for SharePoint Server.
Hi, @Mohammad Qasim ,
If possible, please share the complete code of your project as well as the list data so that I could help you better.
For your first screenshot, you could try to remove the Cast method after list.GetItems(query). Check if it work for you.
Remove this:
For the 2nd, you could try this:
select new {itmdossier, itmCountry } into t1
group t1 by new { resDosParent= Convert.ToInt32(t1.itmdossier[_DossierParentID]) } into g
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.