I want to split the date into week wise and stores the hours weekwise , so i have one entity which stores the week wise data of opportunity using plugin.
I want to show in the subgrid which is related to only that opportunity , but it is showing all records
this is my code, can I use entity refrence to map the fields because it is not showing related records in subgrid?
for (int i = 1; i < weeknumber.Length; i++)
{
Entity newentity = new Entity("test_resourcefulfilment");
newentity["test_name"] = entity.Attributes["name"];
newentity["test_weeknumber"] = weeknumber[i].ToString();
newentity["test_hours"] = hours[i];
service.Create(newentity);
}