Adherence Exception Secondary Presence ID

Hello,
In the adherence exception documents returned there is a "secondardaryPresenceLookupID" key. However, all the values are small integers. I would have expected UUID values for Org presences. Can anyone tell me what these correspond to? Also, the "scheduleSecondaryPresenceLookupIds" array.

adException

TIA,
Andy

The lookupIdToSecondaryPresenceId array that is peer to the '"data" element of the response is the lookup those are pointing to.

Rather than give you the whole presence dictionary they made a shortform embedded lookup in the results with only the relevant ones.

Thanks @Eos_Rios for the quick response! If I'm interpreting your answer correctly the "2" is the index into the array of the other field. However, the array is empty. So, what is "2" pointing to? Ultimately, we're just trying to get the description of the secondary presence.

It shouldn't be empty unless there aren't any, what endpoint are you using?

Mine for example;

It's fairly obvious the entry is a surrogate for "627c37ea-a425-4211-a407-cb416b2c397f"

1 Like

The answer Eos_Rios gave is correct. Note lookupIdToSecondaryPresenceId is at the top level of the json hierarchy to prevent repeating the information for every record. This is a map field, not an array, and the "2" you referred to is the map key, not an array index. Hope this helps.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.