feat: Update dateOfBirth mapping and enhance rowId handling in sync process for Beteiligte
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user