From e24e537650f4f24e4118a52109d52dd8a954fc1b Mon Sep 17 00:00:00 2001 From: Francis Reat Date: Mon, 16 Feb 2026 11:48:56 +0100 Subject: [PATCH] SCPN1-9965 --- RPtoRFX_CarrierAppointmentCreated.ftl | 16 ---------------- RPtoRFX_CarrierAppointmentDefaultData.ftl | 22 +++++++++++++++++++++- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/RPtoRFX_CarrierAppointmentCreated.ftl b/RPtoRFX_CarrierAppointmentCreated.ftl index 68de19d..a6ce97d 100644 --- a/RPtoRFX_CarrierAppointmentCreated.ftl +++ b/RPtoRFX_CarrierAppointmentCreated.ftl @@ -1,10 +1,4 @@ { - <#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", @@ -13,16 +7,6 @@ }, "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"> diff --git a/RPtoRFX_CarrierAppointmentDefaultData.ftl b/RPtoRFX_CarrierAppointmentDefaultData.ftl index 93b4aa7..f4a57b4 100644 --- a/RPtoRFX_CarrierAppointmentDefaultData.ftl +++ b/RPtoRFX_CarrierAppointmentDefaultData.ftl @@ -18,4 +18,24 @@ Timestamp : .Timestamp.DateTime or .Timestamp.AuthorTimeZone Int : .Int String : .String ---> \ No newline at end of file +--> + +<#-- Note : you can send url path of appointment to WMS, using this below code --> + +<#-- + <#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)> + + <#if tinyURL?? && tinyURL.TinyURL?? > + "comment_list": [ + { + "line_number": 1, + "group_code": "SCN", + "text": "${tinyURL.TinyURL.URL?json_string}" + } + ], + +--> \ No newline at end of file