Agent Group defined by PromptSet does not resolve as Agent

Document ID : KB000087580
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
N/A

It is not possible to use a PromptSet to define an Agent Group since the Agent Group is resolved before the prompt is evaluated.

 
Cause:
Cause type:
By design
Resolution:
This field was added on 30/03/2017. This article has not been updated yet. Refer to the "Description" or "Workaround" sections for solution information.

Fix Status: No Fix

Additional Information:
Workaround :
A script can be used on the pre process tab as follows::SET &IS_OVERWRITE_GROUP# = GET_OBJECT_TYPE("&OVERWRITE_AGENT#"):IF &IS_OVERWRITE_GROUP# = "HOSTG": SET &HND# = PREP_PROCESS_HOSTGROUP(&OVERWRITE_AGENT#,"*",BY_RULE): PROCESS &HND#: SET &OVERWRITE_AGENT# = GET_PROCESS_LINE(&HND#,1): SET &STATUS# = GET_PROCESS_LINE(&HND#,2): PRINT "HEADER: overwrite agent with agent from AGENTGROUP: >&OVERWRITE_AGENT#< - Status: >&STATUS#