Describe the bug
The WorkOrder model uses Dtm-prefixed properties for date fields (e.g. DtmDateCreated, DtmSuggestedCompletionDate). However, FiixPropertyNamingPolicy serialises these to dtmDateCreated / dtmSuggestedCompletionDate, which the Fiix API server does not recognise — returning an error stating the column does not exist or is not accessible.
The live API expects the dtt prefix for these fields (e.g. dttDateCreated, dttSuggestedCompletionDate), consistent with the Hungarian notation used elsewhere in the API.
To Reproduce
Steps to reproduce the behavior:
var request = client.PrepareFind<WorkOrder>();
request.Fields = "id, strCode, dtmDateCreated, dtmSuggestedCompletionDate";
var response = await client.FindAsync(request);
// response.Error is non-null: column not found / not accessible
Removing the date fields from the Fields string returns results successfully.
Expected behavior
DtmDateCreated serialises to dttDateCreated and the API returns the date values correctly, consistent with the Fiix API field naming convention.
Environment
- FiixCmms.Client version: 1.0.1-rc3
- .NET version: .NET 10
- Verified against live Fiix sandbox
Possible Fix
Either:
-
Rename the WorkOrder date properties to use the Dtt prefix (DttDateCreated, DttSuggestedCompletionDate, etc.) to match what FiixPropertyNamingPolicy will serialise to, or
-
Add a special-case mapping in FiixPropertyNamingPolicy to convert the Dtm prefix to dtt on serialisation.
Describe the bug
The WorkOrder model uses Dtm-prefixed properties for date fields (e.g. DtmDateCreated, DtmSuggestedCompletionDate). However, FiixPropertyNamingPolicy serialises these to dtmDateCreated / dtmSuggestedCompletionDate, which the Fiix API server does not recognise — returning an error stating the column does not exist or is not accessible.
The live API expects the dtt prefix for these fields (e.g. dttDateCreated, dttSuggestedCompletionDate), consistent with the Hungarian notation used elsewhere in the API.
To Reproduce
Steps to reproduce the behavior:
Removing the date fields from the Fields string returns results successfully.
Expected behavior
DtmDateCreated serialises to dttDateCreated and the API returns the date values correctly, consistent with the Fiix API field naming convention.
Environment
Possible Fix
Either:
Rename the WorkOrder date properties to use the Dtt prefix (DttDateCreated, DttSuggestedCompletionDate, etc.) to match what FiixPropertyNamingPolicy will serialise to, or
Add a special-case mapping in FiixPropertyNamingPolicy to convert the Dtm prefix to dtt on serialisation.