I am trying to find the value of Odata link:
https://F&Olink/data/Dataentityname(InventSiteIdList='inv1', dataAreaId='dat')/Microsoft.Dynamics.DataEntities.GetColorsByAvailability2
I am using the below code :
[SysODataActionAttribute(/GetColorsByAvailability2/, false),
SysODataCollectionAttribute(/InventSiteIdList/, Types::String),
SysODataCollectionAttribute(/return/, Types::String)]
public static str GetColorsByAvailability2(Str _InventSiteIdList)
{
info(strFmt(/%1 invent/,_InventSiteIdList));
return _InventSiteIdList;
}
also method with parameters like:
[SysODataActionAttribute(/GetColors/, true),
SysODataCollectionAttribute(/return/, Types::Record, /CarColor/)]
public List GetColorsByAvailability(boolean onlyAvailableVehicles)
{
if(onlyAvailableVehicles == noyes::Yes)
{
info('yes');
}
else
{
info('no');
}
List returnList = new List(Types::Record);
// do something
return returnList;
}
I wanted to find the method from where I can the value of odata. And where should I put breakpoint to debug and find the values of odata filters