Refering arguments in parameter QueryScript

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.

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

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>

Hi @kolipakularaviturnkey, for better understanding of filters. Please refer this Filters and Filter Strings - Compass (sailpoint.com)

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.

Try using

String fnameValue=args.get("fname)

Test this and let me know if still doesn’t work

@kolipakularaviturnkey
Did you try this, is the issue resolved?

@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.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.