diff --git a/RPtoRFX_AppointmentEvent.ftl b/RPtoRFX_AppointmentEvent.ftl index d44c62f..9be7b06 100644 --- a/RPtoRFX_AppointmentEvent.ftl +++ b/RPtoRFX_AppointmentEvent.ftl @@ -27,7 +27,7 @@ <#case "CommissionsUpdated"> <#assign appointment = eventRP.data /> [ - <#if eventRP.appointmentCustomFields?? && eventRP.appointmentCustomFields?size!=0> + <#if eventRP.appointmentCustomFields?? && eventRP.appointmentCustomFields??has_content> { <#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_number> "apiRestReflexID" : "${apiRestReflexID}", @@ -48,7 +48,7 @@ <#case "SlotUpdated"> <#assign appointment = eventRP.data /> [ - <#if eventRP.appointmentCustomFields?? && eventRP.appointmentCustomFields?size!=0> + <#if eventRP.appointmentCustomFields?? && eventRP.appointmentCustomFields??has_content> { <#assign apiRestReflexID = ApiRestReflexID.appointment_put_update_by_number> "apiRestReflexID" : "${apiRestReflexID}", @@ -69,7 +69,7 @@ <#case "Canceled"> <#assign appointment = eventRP.data /> [ - <#if eventRP.appointmentCustomFields?? && eventRP.appointmentCustomFields?size!=0> + <#if eventRP.appointmentCustomFields?? && eventRP.appointmentCustomFields?has_content> { <#assign apiRestReflexID = ApiRestReflexID.status_appointment_put_update_by_number> "apiRestReflexID" : "${apiRestReflexID}",