Difference between revisions of "Template: GetMaxReleaseDate"

From Genesys Documentation
Jump to: navigation, search
production>Bgrenon
(fixing query (by SublimeText.Mediawiker))
Line 1: Line 1:
<includeonly><!-- Finding the MAX ReleaseDate and passing that and ComponentId to formatting template -->
+
<includeonly><!-- Finding the MAX ReleaseDate and passing that and ComponentId to formatting template  
 +
 
 +
IMPORTANT: this query uses hard coded uui values -->
 
{{#cargo_query:
 
{{#cargo_query:
tables=ComponentRN,ComponentRN__DeploymentTypeId=DepId,ComponentRN__ComponentId=CompId
+
tables=ComponentRN,
|fields=CompId._value=ComponentId,MAX(ReleaseDate)=ReleaseDate
+
ComponentRN__DeploymentTypeId=DepId
|join on=ComponentRN._ID=DepId._rowID,DepId._rowID=CompId._rowID
+
|join on=ComponentRN._ID=DepId._rowID
|where=ComponentRN._pageNamespace="0" AND CompId._value="{{{ComponentId|}}}" AND (DepId._value='5439f1be-1868-4091-b058-1667389b6ce1' OR DepId._value='ec194bf2-b79a-436d-8ff6-eaff94d9f43a')
+
|fields=ComponentRN.ComponentId=ComponentId,
 +
MAX(ReleaseDate)=ReleaseDate
 +
|where=ComponentRN._pageNamespace="0"  
 +
AND ComponentRN.ComponentId="{{{ComponentId|}}}"  
 +
AND (DepId._value='5439f1be-1868-4091-b058-1667389b6ce1' OR DepId._value='ec194bf2-b79a-436d-8ff6-eaff94d9f43a')
 
|format=template
 
|format=template
 
|template=GetReleaseDetails
 
|template=GetReleaseDetails
 
|named args=yes
 
|named args=yes
 
}}
 
}}
</includeonly><noinclude>[[Category:RNAutomtion]]</noinclude>
+
</includeonly><noinclude>[[Category:RNAutomtion]][[Category:TrackConstants]][[Category:ComponentRN.ComponentId cleanup]]</noinclude>

Revision as of 20:36, May 16, 2022

Retrieved from "https://all.docs.genesys.com/Template:GetMaxReleaseDate (2024-11-09 12:59:25)"