From c9cba04714f546bb92c0114456524e65d952012e Mon Sep 17 00:00:00 2001 From: Francis Reat Date: Fri, 13 Feb 2026 09:49:18 +0000 Subject: [PATCH] Merge branch 'SCPN1-9965-tiny-url-appointment' into 'develop' SCPN1-9965 Closes SCPN1-9965 See merge request r-d-technique/tiers/reflex-wms-connector!242 (cherry picked from commit 8974632c2226aed93769d792ab3a2171cb3073c9) --- RPtoRFX_CarrierAppointmentCreated.ftl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/RPtoRFX_CarrierAppointmentCreated.ftl b/RPtoRFX_CarrierAppointmentCreated.ftl index 7c34845..8383d44 100644 --- a/RPtoRFX_CarrierAppointmentCreated.ftl +++ b/RPtoRFX_CarrierAppointmentCreated.ftl @@ -1,4 +1,10 @@ { + <#assign appointmentPathURL = JsonUtil.getAppointmentPathURL(eventRP.site,eventRP.refid)> + <#assign payLoad = '{ "Header": {"ProjectID": "${projectRP!""}"},,"IsOnce": false,"IsPublic": true,"TimeToLive": "0","URL": "${appointmentPathURL}"}' /> + <#assign projectGetTinyURL = QueryApiReflexPlatformID.ProjectGetTinyURL> + <#assign response = QueryApiReflexPlatformCall.call(projectGetTinyURL,payLoad) /> + <#assign tinyURL = JsonUtil.jsonToMap(response)> + "id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"}, "route" : "rest/public/v1/physical_depots/{physical_depot_code}/carrier_appointments", "method" : "POST", @@ -7,6 +13,16 @@ }, "payload" : { + <#if tinyURL?? && tinyURL.TinyURL?? > + "comment_list": [ + { + "line_number": 1, + "group_code": "SCN", + "text": "${tinyURL.TinyURL.URL?json_string}" + } + ], + + "appointment_reference": "${eventRP.refid?json_string}", <#switch appointment.AppointmentType> <#case "APPOINTMENT_TYPE_LOADING">