Discussions
Is there a unique Id for an added flag?
I have successfully added Flags to Work Orders using the API. Our business users would like me to track the flags to see when they were cleared and who cleared them. Is there a unique Id that I can use to refer to each flag I add?
The response I get back when adding the flag includes the work order details, including this section:
"Flag": {
"Id": 3372
},
"FlagId": 3372,
But those values are the ActionReasonId value that I sent, so that value will be the same for all the flags I set. In reading through the API docs, it looks like I may be able to query the Work Order and look at the Flags values, but I'm not sure how I will be able to identify the one I just sent. It is possible that multiple flags could be set within a few seconds so I cannot rely on just looking for the most recent one. Is there anything else in the Flag creation result that uniquely identifies the new flag?