Skip to content

[BUG]: Unchanged businessPhones property updates on every run #43

Description

@RobertKlohr

On every run of the application the businessPhones field reports in the log that it needs to be updated. I don't have the solution but I think I can identify the problem. In Onspring the Phone field is a string and in MS Graph the businessPhones property is an array of strings. The comparison of "(555) 678-1212" to ["(555) 678-1212"] is not matching.

Configuration:

"UsersFieldMappings": {
	"4792": "id",
	"35": "jobTitle",
	"2": "city",
	"34": "businessPhones",
	"1642": "employeeType",
	"10": "state"
},

Log Entry:

{"@t":"2025-03-20T06:08:23.9911044Z","@mt":"Field {FieldId} needs to be updated. Onspring value: {CurrentValue}. Azure AD value: {NewValue}","@l":"Debug","FieldId":34,"CurrentValue":"(555) 678-1212","NewValue":["(555) 678-1212"]}

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions