diff --git a/modules/automation/automation.py b/modules/automation/automation.py index 113e24f..44f65ca 100644 --- a/modules/automation/automation.py +++ b/modules/automation/automation.py @@ -99,7 +99,7 @@ class AutomationDocument(ModelSQL, ModelView, Workflow): doc.notes = (doc.notes or "") + "Id returned: " + request_id so_payload = { - "ServiceOrderKey": sh.service_order_key, + "ServiceOrderKey": sh[0].service_order_key, "ID_Number": request_id }