Skip to content

WorkOrder date properties use Dtm prefix but Fiix API expects dtt prefix #4

Description

@Screaminlean

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:

  1. Rename the WorkOrder date properties to use the Dtt prefix (DttDateCreated, DttSuggestedCompletionDate, etc.) to match what FiixPropertyNamingPolicy will serialise to, or

  2. Add a special-case mapping in FiixPropertyNamingPolicy to convert the Dtm prefix to dtt on serialisation.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions