Which IIQ version are you inquiring about?
Version 8.X
Share all details related to your problem, including any error messages you may have received.
Hi,
We are using IdentityIQ 8.2 version.
How to refer arguments from parameters QueryScript. do we have any method supporting in sailpoint reports using “Filter” type.
//I NEED TO GET fetch last name argument for comparison purpose
Please help.
Regards,
Ravi.
ashutosh08
(Ashutosh Singh)
May 31, 2024, 6:26am
2
Hi @kolipakularaviturnkey ,
Are you developing any custom report, or you are trying to modify any existing report?
Kindly provide some background so that we can help you accordingly.
Thanks
developing custom report
i have 2 argmetn fname, lname
inside paramter fname quryscript i should be able to get the argument lname and use it
Regards,
Ravi
iamksatish
(Satish Kurasala)
May 31, 2024, 6:38am
4
Assuming your form reference attribute name is lname and same as in your report definition arguments, in Query Options you can follow like below
<Parameter argument="lname" property="lastname">
<QueryScript>
<Source>
import sailpoint.object.Filter;
import sailpoint.tools.Util;
if(value!=null){
queryOptions.addFilter(Filter.eq("lastname", value));
// Add any conditions whatever you want basically value will hold the lname value given in form
}
return queryOptions;
</Source>
</QueryScript>
</Parameter>
My query is to compare lname(passed as form input) and fname(passed as form input).
In your code snippet parameter=“lname” how can i get the value of fname argument inside he query script.
Regards,
Ravi.
iamksatish
(Satish Kurasala)
May 31, 2024, 9:18am
7
Try using
String fnameValue=args.get("fname)
Test this and let me know if still doesn’t work
iamksatish
(Satish Kurasala)
June 3, 2024, 4:04am
8
@kolipakularaviturnkey
Did you try this, is the issue resolved?
soswain
(Soumyakanta Swain)
June 3, 2024, 5:47am
9
@kolipakularaviturnkey ,
Please use the below code to get the value
String fName = arguments.get("fname");
Note: provide the value of fName field to get the fName field value in lName using the above line.
Hope this helps.
system
(system)
Closed
August 2, 2024, 5:48am
10
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.