If you export contacts in locallyAdded, you need to add them to your 'exportedIds' storage, to be used in subsequent calls.