Hi All,
I have a requirement where we need to restrict the carrier from entering pickup and delivery events from integration if the status of the shipment is not SECURE RESOURCES
ACCEPTED.I am trying to achieve this through an Integration Saved Query(using Xpath).
Query Name : CP_D1
---------------------------------------------------------------------------------------------------
select shipment_gid from shipment_status
where status_type_gid = 'Domai_Name.SECURE RESOURCES'
and STATUS_VALUE_GID = 'Domai_Name.SECURE RESOURCES_ACCEPTED'
and shipment_gid = '{ShipmentStatus/ShipmentRefnum[ShipmentRefnumQualifierGid='GLOG']/ShipmentRefnumValue}'
and (('CP' = '{ShipmentStatus/StatusCodeGid/Gid/Xid}') or ('D1' = '{ShipmentStatus/StatusCodeGid/Gid/Xid}'))
---------------------------------------------------------------------------------------------------
And I am using this query in the Transmission Header section of ShipmentStatus xml for testing as below:
<TransmissionHeader>
<IntSavedQuery>
<IntSavedQueryGid>
<Gid>
<DomainName>Domain_Name</DomainName>
<Xid>CP_D1</Xid>
</Gid>
</IntSavedQueryGid>
<IsMultiMatch>Y</IsMultiMatch>
<NoDataFoundAction></NoDataFoundAction>
</IntSavedQuery>
</TransmissionHeader>
Please advise why is the integration query not working.
Regards,
Naveen
I have a requirement where we need to restrict the carrier from entering pickup and delivery events from integration if the status of the shipment is not SECURE RESOURCES
ACCEPTED.I am trying to achieve this through an Integration Saved Query(using Xpath).
Query Name : CP_D1
---------------------------------------------------------------------------------------------------
select shipment_gid from shipment_status
where status_type_gid = 'Domai_Name.SECURE RESOURCES'
and STATUS_VALUE_GID = 'Domai_Name.SECURE RESOURCES_ACCEPTED'
and shipment_gid = '{ShipmentStatus/ShipmentRefnum[ShipmentRefnumQualifierGid='GLOG']/ShipmentRefnumValue}'
and (('CP' = '{ShipmentStatus/StatusCodeGid/Gid/Xid}') or ('D1' = '{ShipmentStatus/StatusCodeGid/Gid/Xid}'))
---------------------------------------------------------------------------------------------------
And I am using this query in the Transmission Header section of ShipmentStatus xml for testing as below:
<TransmissionHeader>
<IntSavedQuery>
<IntSavedQueryGid>
<Gid>
<DomainName>Domain_Name</DomainName>
<Xid>CP_D1</Xid>
</Gid>
</IntSavedQueryGid>
<IsMultiMatch>Y</IsMultiMatch>
<NoDataFoundAction></NoDataFoundAction>
</IntSavedQuery>
</TransmissionHeader>
Please advise why is the integration query not working.
Regards,
Naveen