feat: Update dateOfBirth mapping and enhance rowId handling in sync process for Beteiligte

This commit is contained in:
2026-02-07 22:27:29 +00:00
parent d5bc17e454
commit d10554ea9d
3 changed files with 14 additions and 3 deletions

View File

@@ -259,6 +259,13 @@ async def handle_update(entity_id, betnr, espo_entity, espocrm, advoware, sync_u
elif isinstance(put_result, dict):
new_rowid = put_result.get('rowId')
# Schreibe neue rowId zurück nach EspoCRM
if new_rowid:
await espocrm.update_entity('CBeteiligte', entity_id, {
'advowareRowId': new_rowid
})
context.logger.info(f"📝 rowId in EspoCRM aktualisiert: {new_rowid[:20]}...")
await sync_utils.release_sync_lock(
entity_id,
'clean',