The offline store exposes information about whether or not entities and relationships are local.
During a read request, information about whether or not an entity or relationship is local is returned as an instance annotation; com.sap.vocabularies.Offline.v1.islocal is set to true. If the entity is not local, the annotation is note returned.
If an $expand is used, and an entity is included in the result because a locally modified relationship was expanded, an annotation for that entity shows that com.sap.vocabularies.Offline.v1.fromlocalrelationship is set to true. If the entity was expanded due to a relationship that is no local, this annotation is not returned.
The sap.islocal() built-in $filter function enables entities and relationships to be filtered based on whether they are local.
Returns all Customers that were created or modified locally.
Returns the link (URI) for all relationships between Customer 101 and its Orders that were not created or modified locally.
The offline store provides the getRequestQueueIsEmpty method to determine if the request queue is empty. See the OData Offline APIs.