ServiceNow / PySNC

Python API for ServiceNow
MIT License
91 stars 28 forks source link

Glide Record changes method return False if more than one field is changed #114

Closed ITblacksheep closed 1 month ago

ITblacksheep commented 3 months ago

If you have more than one field change in a record the changes() method will return False. I am pretty sure it is because xor on True and True returns False.

to reproduce:

gr = GlideRecord(table)
gr.get("number",record_id)
gr.set_value('state',2)
gr.set_value('work_notes','Testing')
gr.changes()