Like what you see? Have a play with our trial version.

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:
Expand
titleGETFAVOURITES

This web service call returns all reports marked as favourite by a specific user. 

 

Request Parameters

The following parameters should be passed with this request:

Request Element

Data Type

Description

LoginId

String

An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web service function. Set this to "GETFAVOURITES".

PersonAdministrationPersonThis object contains details of the user. See table below.

Anchor
getfaveap
getfaveap

These are the main parameters that you must set in the AdministrationPerson object for this web service call:

AdministrationPerson Element

Data Type

Description

UserId

String

ID of the user whose favourite reports are to be fetched. This value could be the user ID or user's email address, depending on the Logon ID method.

 

 

Request Example

Below is a SOAP XML example for this request:

Code Block
languagexml
themeConfluence
 

 

 

Response Parameters

The returned response will contain the following parameter:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE

Person

AdministrationPerson

Full details of the user.

Reports

AdministrationReports[]

An array of the user's favourite reports.

 

 

Response Example

The service will return the below response, according to our SOAP example:

Code Block
languagexml
themeConfluence
 

 

 

Instructions

See below for step-by-step instructions on how to perform this call, using a Java example:

Expand
titleStep-by-step instructions
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <web:remoteAdministrationCall> 
         <arg0>
            <loginId>admin@yellowfin.com.au</loginId>
            <password>test</password>
            <orgId>1</orgId>
            <function>GETFAVOURITES</function>
            <person>
            	<userId>admin@yellowfin.com.au</userId>
            </person>   
         </arg0>
      </web:remoteAdministrationCall>
   </soapenv:Body>
</soapenv:Envelope>

 

 

Response Parameters

The returned response will contain the following parameter:

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE

Person

AdministrationPerson

Full details of the user.

Reports

AdministrationReports[]

An array of the user's favourite reports.

 

 

Response Example

The service will return the below response, according to our SOAP example:

Code Block
languagexml
themeConfluence
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
         <return>
Code Block
languagejava
AdministrationServiceRequest rsr = new AdministrationServiceRequest();

rsr.setLoginId("admin@yellowfin.com.au");
rsr.setPassword("test");
rsr.setOrgId(1);

rsr.setFunction("GETFAVOURITES");
  • You can specify the user to fetch their favourite reports:

    Code Block
    languagejava
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
    rsr.setPerson(ap);
    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode, Person and Reports parameters. See the Response Parameter table above for details on these.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ getfavourites.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ getfavourites.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    <%        	
    /*          	ws_getfavourites.jsp                	*<errorCode>0</errorCode>
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au"); <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
                <messages>Getting user information...</messages>
                <messages>Getting user information...</messages>
          		// provide your Yellowfin web services admin account
    rsr.setPassword("test");  <messages>Web Service Request Complete</messages>
                <person>
                  // set to the password of the account above
    rsr.setOrgId(1);
    rsr.setFunction("GETFAVOURITES");
     
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
     
    rsr.setPerson(ap);
     
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
     
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
     <emailAddress>admin@yellowfin.com.au</emailAddress>
                   <firstName>System</firstName>
                   	out.write("<br>Success");<initial/>
                   <ipId>5</ipId>
                   <languageCode>EN</languageCode>
      	AdministrationReport[] reports = rs.getReports();
              <lastName>Administrator</lastName>
                   <roleCode>YFADMIN</roleCode>
                	if (reports != null) <salutationCode/>
                   <status>ACTIVE</status>
                   <timeZoneCode>AUSTRALIA/SYDNEY</timeZoneCode>
                   <userId>admin@yellowfin.com.au</userId>
                </person>
               	for(AdministrationReport r: reports){ <reports>
                   <authoringMode>JAVA</authoringMode>
                   <averageRunTime>0</averageRunTime>
                   <birtData/>
                   <chartTypeCode/>
                   <dashboardEnabled>true</dashboardEnabled>
               	out.write("<br>Report Name: " + r.getReportName()); <dataOutput>COLUMN</dataOutput>
                   <deliveryMode/>
                   <executionObject/>
                   <lastModifiedDate>2016-03-29T00:00:00+11:00</lastModifiedDate>
                   <lastModifierId>5</lastModifierId>
             	}
    } else {
        <lastModifierName>System Administrator</lastModifierName>
             	out.write("Failure");
             <publishDate>2016-03-23T00:00:00+11:00</publishDate>
                   <reportCategory>Audit Reports</reportCategory>
               	out.write(" Code: " + rs.getErrorCode());
    }
    %>
    
    
    

     

     

    Expand
    titleGETINBOX
     <reportDescription/>
                   <reportId>56401</reportId>
                   <reportName>Active Sessions</reportName>
                   <reportSubCategory>Admin Reports</reportSubCategory>
                   <reportTemplate>REPORTANDCHART</reportTemplate>
                   <reportUUID>594d4da4-1b58-44d3-bf4f-11456a42f68c</reportUUID>
                   <roleCode>OPERATIONAL</roleCode>
                   <sourceName/>
                   <usage>24</usage>
                   <viewDescription>Yellowfin Usage Audit</viewDescription>
                   <viewId>56169</viewId>
                   <viewName>NEW VIEW</viewName>
                </reports>
                <reports>
                   <authoringMode>JAVA</authoringMode>
                   <averageRunTime>0</averageRunTime>
                   <birtData/>
                   <chartTypeCode/>
                   <dashboardEnabled>true</dashboardEnabled>
                   <dataOutput>COLUMN</dataOutput>
                   <deliveryMode/>
                   <executionObject/>
                   <lastModifiedDate>2016-03-29T00:00:00+11:00</lastModifiedDate>
                   <lastModifierId>5</lastModifierId>
                   <lastModifierName>System Administrator</lastModifierName>
                   <publishDate>2016-03-23T00:00:00+11:00</publishDate>
                   <reportCategory>Audit Reports</reportCategory>
                   <reportDescription/>
                   <reportId>56401</reportId>
                   <reportName>Active Sessions</reportName>
                   <reportSubCategory>Admin Reports</reportSubCategory>
                   <reportTemplate>REPORTANDCHART</reportTemplate>
                   <reportUUID>594d4da4-1b58-44d3-bf4f-11456a42f68c</reportUUID>
                   <roleCode>OPERATIONAL</roleCode>
                   <sourceName/>
                   <usage>24</usage>
                   <viewDescription>Yellowfin Usage Audit</viewDescription>
                   <viewId>56169</viewId>
                   <viewName>NEW VIEW</viewName>
                </reports>
                <sessionId>dffb6a0f4f155d46c73d1e77dffbd81c</sessionId>
                <statusCode>SUCCESS</statusCode>
             </return>
          </ns2:remoteAdministrationCallResponse>
       </S:Body>
    </S:Envelope>

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    • Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:

      Code Block
      languagejava
      AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      
      rsr.setLoginId("admin@yellowfin.com.au");
      rsr.setPassword("test");
      rsr.setOrgId(1);
      
      rsr.setFunction("GETFAVOURITES");
    • You can specify the user to fetch their favourite reports:

      Code Block
      languagejava
      AdministrationPerson ap = new AdministrationPerson();
      ap.setUserId("test.user@yellowfin.com.au");
      rsr.setPerson(ap);
    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode, Person and Reports parameters. See the Response Parameter table above for details on these.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ getfavourites.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ getfavourites.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    <%        	
    /*          	ws_getfavourites.jsp               */
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au");      		// provide your Yellowfin web services admin account
    rsr.setPassword("test");                            // set to the password of the account above
    rsr.setOrgId(1);
    rsr.setFunction("GETFAVOURITES");
     
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
     
    rsr.setPerson(ap);
     
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
     
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
    	out.write("<br>Success");
        AdministrationReport[] reports = rs.getReports();
        if (reports != null)
        	for(AdministrationReport r: reports){
    			out.write("<br>Report Name: " + r.getReportName());
            }
    } else {
    	out.write("Failure");
    	out.write(" Code: " + rs.getErrorCode());
    }
    %>
    
    

     


     

    Expand
    titleGETINBOX

    This returns a specified user's inbox reports. These are reports which have been distributed to the user.

     

    Request Parameters

    The following parameters should be passed with this request:

    Request Element

    Data Type

    Description

    LoginId

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "GETINBOX".

    PersonAdministrationPersonThis object contains details of the user. See table below.

    Anchor
    getinboxap
    getinboxap

    These are the main parameters that you must set in the AdministrationPerson object for this web service call:

    AdministrationPerson Element

    Data Type

    Description

    UserId

    String

    ID of the user whose inbox reports are to be fetched. This value could be the user ID or user's email address, depending on the Logon ID method.

     

     

    Request Example

    Below is a SOAP XML example for this request:

    Code Block
    languagexml
    themeConfluence
     

     

     

    Response Parameters

    The returned response will contain the following parameter:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS
    • FAILURE

    Person

    AdministrationPerson

    Full details of the user.

    Reports

    AdministrationReports[]

    An array of the user's inbox reports.

     

     

    Response Example

    The service will return the below response, according to our SOAP example:

    Code Block
    languagexml
    themeConfluence
     

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    • Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:

      Code Block
      languagejava
      AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      
      rsr.setLoginId("admin@yellowfin.com.au");
      rsr.setPassword("test");
      rsr.setOrgId(1);
      
      rsr.setFunction("GETINBOX");
    • You can specify the user to fetch their favourite reports:

      Code Block
      languagejava
      AdministrationPerson ap = new AdministrationPerson();
      ap.setUserId("test.user@yellowfin.com.au");
      rsr.setPerson(ap);
    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode, Person and Reports parameters. See the Response Parameter table above for details on these.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ getinbox.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ getinbox.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    <%        	
    /*          	ws_getinbox.jsp                            	*/
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin web services admin account
    rsr.setPassword("test");                        // set to the password of the above account
    rsr.setOrgId(1);
    rsr.setFunction("GETINBOX");
     
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
     
    rsr.setPerson(ap);
     
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
     
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
    	out.write("<br>Success");
    	AdministrationReport[] reports = rs.getReports();
    	if (reports != null)
        	for(AdministrationReport r: reports){
            	out.write("<br>Report Name: " + r.getReportName());
            }
    } else {
    	out.write("Failure");
    	out.write(" Code: " + rs.getErrorCode());
    }
    %>
    
    

     


     

    These are the main parameters that you must set in the AdministrationPerson object for this web service call:

    Expand
    titleISREPORTFAVOURITE

    This web service checks whether or not a particular report is marked as a specific user's favourite. Both the user and the report would need to be specified here, the latter by providing the Report ID. This ID can be retrieved from Yellowfin database's Report Header table. You can even use the GETIDFORUUID web service call to retrieve the Report ID.

     

    Request Parameters

    The following parameters should be passed with this request:

    Request Element

    Data Type

    Description

    LoginId

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "ISREPORTFAVOURITE".

    PersonAdministrationPersonThis object contains details of the user. See table below.
    ReportIdIntegerThe report ID to check whether the report is the user's favourite.

    Anchor
    isrepfaveap
    isrepfaveap

    These are the main parameters that you must set in the AdministrationPerson object for this web service call:

    AdministrationPerson Element

    Data Type

    Description

    UserId

    String

    ID of the user whose inbox reports are to be fetched. This value could be the user ID or user's email address, depending on the Logon ID method.

     

     

    Request Example

    Below is a SOAP XML example for this request:

    Code Block
    languagexml
    themeConfluence
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <web:remoteAdministrationCall> 
             <arg0>
                <loginId>admin@yellowfin.com.au</loginId>
    

    This returns a specified user's inbox reports. These are reports which have been distributed to the user.

     

    Request Parameters

    The following parameters should be passed with this request:

    Request Element

    Data Type

    Description

    LoginId

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "GETINBOX".

    PersonAdministrationPersonThis object contains details of the user. See table below.
    Anchor
    getinboxapgetinboxap
    AdministrationPerson Element

    Data Type

    Description

    UserId

    String

    ID of the user whose inbox reports are to be fetched. This value could be the user ID or user's email address, depending on the Logon ID method.

     

     

    Request Example

    Below is a SOAP XML example for this request:

    Code Block
    languagexml
    themeConfluence
     

     

     

    Response Parameters

    The returned response will contain the following parameter:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS
    • FAILURE

    Person

    AdministrationPerson

    Full details of the user.

    Reports

    AdministrationReports[]

    An array of the user's inbox reports.

     

     

    Response Example

    The service will return the below response, according to our SOAP example:

    Code Block
    languagexml
    themeConfluence
     

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:
    Code Block
    languagejava
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(1);
    
    rsr.setFunction("GETINBOX");
  • You can specify the user to fetch their favourite reports:

    Code Block
    languagejava
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
    rsr.setPerson(ap);
    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode, Person and Reports parameters. See the Response Parameter table above for details on these.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ getinbox.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ getinbox.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    <%        	
    /*          	ws_getinbox.jsp                            	*/
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin webservices admin account
    rsr.setPassword("test");                  <password>test</password>
                <orgId>1</orgId>
                <function>ISREPORTFAVOURITE</function>
              	// change to<reportId>56401</reportId>
     be the password of the account above
    rsr.setOrgId(1);
    rsr.setFunction("GETINBOX");
     
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
     
    rsr.setPerson(ap);
     
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
     
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
       <person>
                	<userId>admin@yellowfin.com.au</userId>
               	out.write("<br>Success");
      </person>   
             </arg0>
          </web:remoteAdministrationCall>
                 	AdministrationReport[] reports = rs.getReports();
       </soapenv:Body>
    </soapenv:Envelope>

     

     

    Response Parameters

    The returned response will contain the following parameter:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS - If the specified report is the user's favourite.
    • FAILURE - If the report is not a favourite report of the user.

     

     

    Response Example

    The service will return the below response, according to our SOAP example:

    Code Block
    languagexml
    themeConfluence
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
                                 	if (reports != null)
                           <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
             <return>
                <errorCode>0</errorCode>
                <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
             	for(AdministrationReport r: reports){
     <messages>Web Service Request Complete</messages>
                <sessionId>ca75c7ebef710e4fc7c6ca6137baa784</sessionId>
                <statusCode>SUCCESS</statusCode>
             </return>
          </ns2:remoteAdministrationCallResponse>
       </S:Body>
    </S:Envelope>

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    • Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:

      Code Block
      languagejava
      AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      
      rsr.setLoginId("admin@yellowfin.com.au");
      rsr.setPassword("test");
      rsr.setOrgId(1);
      
      rsr.setFunction("ISREPORTFAVOURITE");
    • You can identify the user for whom to check the report's favourite status:

      Code Block
      languagejava
      AdministrationPerson ap = new AdministrationPerson();
      ap.setUserId("test.user@yellowfin.com.au");
      rsr.setPerson(ap);
    • Specify which report to check the favourite status for:

      Code Block
      languagejava
      rsr.setReportId(61131);



    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode. See the Response Parameter table above for details on this.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ isreportfavourite.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ isreportfavourite.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    <%        	
    /*          	ws_isreportfavourite.jsp                                           	out.write("<br>Report Name: " + r.getReportName());
                                                                        	}
    } else {
                  	out.write("Failure");
                  	out.write(" Code: " + rs.getErrorCode());
    }
    %>
    
    
    

     

     

    Expand
    titleISREPORTFAVOURITE

    This web service checks whether or not a particular report is marked as a specific user's favourite. Both the user and the report would need to be specified here, the latter by providing the Report ID. This ID can be retrieved from Yellowfin database's Report Header table. You can even use the GETIDFORUUID web service call to retrieve the Report ID.

     

    Request Parameters

    The following parameters should be passed with this request:

    Request Element

    Data Type

    Description

    LoginId

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "ISREPORTFAVOURITE".

    PersonAdministrationPersonThis object contains details of the user. See table below.
    ReportIdIntegerThe report ID to check whether the report is the user's favourite.
    Anchorisrepfaveapisrepfaveap

    These are the main parameters that you must set in the AdministrationPerson object for this web service call:

    AdministrationPerson Element

    Data Type

    Description

    UserId

    String

    ID of the user whose inbox reports are to be fetched. This value could be the user ID or user's email address, depending on the Logon ID method.

     

     

    Request Example

    Below is a SOAP XML example for this request:

    Code Block
    languagexml
    themeConfluence
     <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <web:remoteAdministrationCall> 
             <arg0>
                <loginId>admin@yellowfin.com.au</loginId>
                <password>test</password>
    */
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin web services admin account
    rsr.setPassword("test");                        // set to the password of the account above
    rsr.setOrgId(1);
    rsr.setFunction("ISREPORTFAVOURITE");
     
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
     
    rsr.setPerson(ap);
     
    rsr.setReportId(61131);
     
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
     
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
                    <orgId>1</orgId>	out.write("<br>Success");
                <function>ISREPORTFAVOURITE</function>
                <reportId>61131</reportId>
            	
    } else {
      <person>
                	<userId>admin@yellowfin.com.au</userId>out.write("Failure");
                </person>
      	out.write(" Code: "     </arg0>
          </web:remoteAdministrationCall>
       </soapenv:Body>
    </soapenv:Envelope>+ rs.getErrorCode());
    }
    %>
    
    

     


     

    Expand
    titleADDTOFAVOURITES

    Also, ADDTOFAVORITES. This web service call marks a particular report as the specified user's favourite. Both the user and the report would need to be specified here, the latter by providing the report ID. Use the GETIDFORUUID web service call to retrieve the report ID, or fetch it from the database (this value is stored in the Report Header table).

     

    Request Parameters

    The following parameters should be passed with this request:

    Request

     

     

    Response Parameters

    The returned response will contain the following parameter:

    Response Element

    Data Type

    Description

    StatusCodeLoginId

    String

    Status of the web service call. Possible values include:

    • SUCCESS - If the specified report is the user's favourite.
    • FAILURE - If the report is not a favourite report of the user.

     

     

    Response Example

    The service will return the below response, according to our SOAP example:

    Code Block
    languagexml
    themeConfluence
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
          <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
             <return>
                <errorCode>0</errorCode>
                <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
                <messages>Web Service Request Complete</messages>
                <sessionId>fa69d19c0f6a6ffa9b3d1a19ec92abd9</sessionId>
                <statusCode>FAILURE</statusCode>
             </return>
          </ns2:remoteAdministrationCallResponse>
       </S:Body>
    </S:Envelope> 

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "ADDTOFAVOURITES" or "ADDTOFAVORITES".

    PersonAdministrationPersonThis object contains details of the user. See table below.
    ReportIdIntegerThe ID of the report that is to be added as a favourite of the user's.

    Anchor
    addtofavap
    addtofavap

    These are the main parameters that you must set in the AdministrationPerson object for this web service call:

    AdministrationPerson Element

    Data Type

    Description

    UserId

    String

    ID of the user to add the report as their favourite. This value could be the user ID or user's email address, depending on the Logon ID method.

     

     

    Request Example

    Below is a SOAP XML example for this request:

    Code Block
    languagexml
    themeConfluence
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <web:remoteAdministrationCall> 
             <arg0>
                <loginId>admin@yellowfin.com.au</loginId>
                <password>test</password>
                <orgId>1</orgId>
                <function>ADDTOFAVOURITES</function>
                <reportId>56401</reportId>
                <person>
                	<userId>admin@yellowfin.com.au</userId>
                </person>   
             </arg0>
          </web:remoteAdministrationCall>
       </soapenv:Body>
    </soapenv:Envelope>

     

     

    Response Parameters

    The returned response will contain the following parameter:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS - if the report is added as the user's favourite.
    • FAILURE - if the report is not added as the user's favourite.

     

     

    Response Example

    The service will return the below response, according to our SOAP example:

    Code Block
    languagexml
    themeConfluence
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
          <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
    
    Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:
    Code Block
    languagejava
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(1);
    
    rsr.setFunction("ISREPORTFAVOURITE");
  • You can identify the user for whom to check the report's favourite status:

    Code Block
    languagejava
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
    rsr.setPerson(ap);
  • Specify which report to check the favourite status for:

    Code Block
    languagejava
    rsr.setReportId(61131);
    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode. See the Response Parameter table above for details on this.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ isreportfavourite.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ isreportfavourite.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    <%        	
    /*          	ws_isreportfavourite.jsp          <return>
                 	*<errorCode>0</errorCode>
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au"); <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
                <messages>Web Service Request Complete</messages>
                	<sessionId>cf897244c65ceecd6c4c39e8ab8c4fcb<//sessionId>
     provide your Yellowfin web services admin account
    rsr.setPassword("test");     <statusCode>SUCCESS</statusCode>
             </return>
              // set to the password of the account above
    rsr.setOrgId(1);
    rsr.setFunction("ISREPORTFAVOURITE");
     
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.</ns2:remoteAdministrationCallResponse>
       </S:Body>
    </S:Envelope>

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    • Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:

      Code Block
      languagejava
      AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      
      rsr.setLoginId("admin@yellowfin.com.au");
      
    • rsr.
    setPerson
    • setPassword(
    ap
    • "test");
      
    • rsr.
    setReportId
    • setOrgId(
    61131); AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr); if ("SUCCESS".equals(rs.getStatusCode()) ) { out.write("<br>Success"); } else { out.write("Failure"); out.write(" Code: " + rs.getErrorCode()); } %>

     

     

    • 1);
      
      rsr.setFunction("ADDTOFAVOURITES");
    • You can identify the user for whom to check the report's favourite status:

      Code Block
      languagejava
      AdministrationPerson ap = new AdministrationPerson();
      ap.setUserId("test.user@yellowfin.com.au");
      rsr.setPerson(ap);
    • Specify which report to check the favourite status for:

      Code Block
      languagejava
      rsr.setReportId(61131);



    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode. See the Response Parameter table above for details on this.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ addtofavourites.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ addtofavourites.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    /*          	ws_addtofavourites.jsp                  */
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin webservices admin account
    rsr.setPassword("test");                                                    	// change to be the password of the account above
    rsr.setOrgId(1);
    rsr.setFunction("ADDTOFAVORITES");
     
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
     
    rsr.setPerson(ap);
     
    rsr.setReportId(56361);
     
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
     
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
    	out.write("<br>Success");
                                    	
    } else {
    	out.write("Failure");
    	out.write(" Code: " + rs.getErrorCode());
    }
    %>
    
    

     


     

    These are the main parameters that you must set in the AdministrationPerson object for this web service call:

    Expand
    titleREMOVEFAVOURITE

    Also, REMOVEFAVORITE. This web service call removes a particular report from the specified user's favourite list. Both the user and the report would need to be specified here, the latter by providing the report ID. Use the GETIDFORUUID web service call to retrieve the report ID, or fetch it from the database (this value is stored in the Report Header table).

     

    Request Parameters

    The following parameters should be passed with this request:

    Request Element

    Data Type

    Description

    LoginId

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "REMOVEFAVOURITE" or "REMOVEFAVORITE".

    PersonAdministrationPersonThis object contains details of the user. See table below.
    ReportIdIntegerThe ID of the report that is to be removed from the user's favourite list.

    Anchor
    removefavap
    removefavap

    These are the main parameters that you must set in the AdministrationPerson object for this web service call:

    AdministrationPerson Element

    Data Type

    Description

    UserId

    String

    ID of the user to remove the report from their favourite list. This value could be the user ID or user's email address, depending on the Logon ID method.

     

     

    Request Example

    Below is a SOAP XML example for this request:

    Code Block
    languagexml
    themeConfluence
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <web:remoteAdministrationCall> 
             <arg0>
    
    Expand
    titleADDTOFAVOURITES

    Also, ADDTOFAVORITES. This web service call marks a particular report as the specified user's favourite. Both the user and the report would need to be specified here, the latter by providing the report ID. Use the GETIDFORUUID web service call to retrieve the report ID, or fetch it from the database (this value is stored in the Report Header table).

     

    Request Parameters

    The following parameters should be passed with this request:

    Request Element

    Data Type

    Description

    LoginId

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "ADDTOFAVOURITES" or "ADDTOFAVORITES".

    PersonAdministrationPersonThis object contains details of the user. See table below.
    ReportIdIntegerThe ID of the report that is to be added as a favourite of the user's.
    Anchor
    addtofavapaddtofavap
    AdministrationPerson Element

    Data Type

    Description

    UserId

    String

    ID of the user to add the report as their favourite. This value could be the user ID or user's email address, depending on the Logon ID method.

     

     

    Request Example

    Below is a SOAP XML example for this request:

    Code Block
    languagexml
    themeConfluence
     

     

     

    Response Parameters

    The returned response will contain the following parameter:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS - if the report is added as the user's favourite.
    • FAILURE - if the report is not added as the user's favourite.

     

     

    Response Example

    The service will return the below response, according to our SOAP example:

    Code Block
    languagexml
    themeConfluence
     

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:
    Code Block
    languagejava
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    
    rsr.setLoginId("admin@yellowfin.com.au");
    rsr.setPassword("test");
    rsr.setOrgId(1);
    
    rsr.setFunction("ADDTOFAVOURITES");
  • You can identify the user for whom to check the report's favourite status:

    Code Block
    languagejava
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
    rsr.setPerson(ap);
  • Specify which report to check the favourite status for:

    Code Block
    languagejava
    rsr.setReportId(61131);
    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode. See the Response Parameter table above for details on this.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ addtofavourites.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ addtofavourites.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    /*          	ws_addtofavourites.jsp                              	*/
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin webservices admin account
    rsr.setPassword("test");                                                    	// change to be the password of the account above
    rsr.setOrgId(1);
    rsr.setFunction("ADDTOFAVORITES");
     
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
     
    rsr.setPerson(ap);
     
    rsr.setReportId(56361);
     
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
     
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
       <loginId>admin@yellowfin.com.au</loginId>
                <password>test</password>
                <orgId>1</orgId>
                	out.write("<br>Success");<function>REMOVEFAVOURITE</function>
                <reportId>56401</reportId>
                <person>
            	
    } else {
      	<userId>admin@yellowfin.com.au</userId>
                	out.write("Failure");
    </person>   
             </arg0>
      	out.write(" Code: " + rs.getErrorCode());
    }
    %>
    
    

     

     

    Expand
    titleREMOVEFAVOURITE
     </web:remoteAdministrationCall>
       </soapenv:Body>
    </soapenv:Envelope>

     

     

    Response Parameters

    The returned response will contain the following parameter:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS - If the report is

    Also, REMOVEFAVORITE. This web service call removes a particular report from the specified user's favourite list. Both the user and the report would need to be specified here, the latter by providing the report ID. Use the GETIDFORUUID web service call to retrieve the report ID, or fetch it from the database (this value is stored in the Report Header table).

     

    Request Parameters

    The following parameters should be passed with this request:

    The ID of the report that is to be

    Request Element

    Data Type

    Description

    LoginId

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "REMOVEFAVOURITE" or "REMOVEFAVORITE".

    PersonAdministrationPersonThis object contains details of the user. See table below.
    ReportIdInteger
    removefavap

    These are the main parameters that you must set in the AdministrationPerson object for this web service call:

    ID of the user to remove the report from their favourite list. This value could be the user ID or user's email address, depending on the Logon ID method
    AdministrationPerson Element

    Data Type

    Description

    UserId

    String

    • removed from the user's favourite list.
    Anchorremovefavap
    • FAILURE - If the report is not removed from the user's favourite list.

     

     

    Request

    Response Example

    Below is a SOAP XML example for this requestThe service will return the below response, according to our SOAP example:

    Code Block
    languagexml
    themeConfluence
     

     

     

    Response Parameters

    The returned response will contain the following parameter:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS - If the report is removed from the user's favourite list.
    • FAILURE - If the report is not removed from the user's favourite list.

     

     

    Response Example

    The service will return the below response, according to our SOAP example:

    Code Block
    languagexml
    themeConfluence
     
     <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
          <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
             <return>
                <errorCode>0</errorCode>
                <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
                <messages>Web Service Request Complete</messages>
                <sessionId>1be6b980918323dab6f41fec3c040c56</sessionId>
                <statusCode>SUCCESS</statusCode>
             </return>
          </ns2:remoteAdministrationCallResponse>
       </S:Body>
    </S:Envelope>

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    • Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:

      Code Block
      languagejava
      AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      
      rsr.setLoginId("admin@yellowfin.com.au");
      rsr.setPassword("test");
      rsr.setOrgId(1);
      
      rsr.setFunction("REMOVEFAVOURITE");
    • You can identify the user for whom to check the report's favourite status:

      Code Block
      languagejava
      AdministrationPerson ap = new AdministrationPerson();
      ap.setUserId("test.user@yellowfin.com.au");
      rsr.setPerson(ap);
    • Specify which report to check the favourite status for:

      Code Block
      languagejava
      rsr.setReportId(61131);



    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode. See the Response Parameter table above for details on this.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ removefavourite.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ removefavourite.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    /*          	ws_removefavourite.jsp                          	*/
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);        // adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au");      		// provide your Yellowfin web services admin account
    rsr.setPassword("test");                            // set to the password of the account above
    rsr.setOrgId(1);
    rsr.setFunction("REMOVEFAVOURITE");
     
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("test.user@yellowfin.com.au");
     
    rsr.setPerson(ap);
     
    rsr.setReportId(56361);
     
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
     
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
                  	out.write("<br>Success");
                                    	
    } else {
                  	out.write("Failure");
                  	out.write(" Code: " + rs.getErrorCode());
    }
    %>
    
    
    

     


     

    Expand
    titleLISTPERSONFAVOURITES

    This web service call returns a specific user's favourite items, including reports, storyboards, views, dashboards, distributed content, discussions or comments flagged by them.

     

    Request Parameters

    The following parameters should be passed with this request:

    Request Element

    Data Type

    Description

    LoginId

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "LISTPERSONFAVOURITES".

    FavouritePersonFavouriteThis object is used to specify the favourite items are to be fetched. The user must be specified here, however other parameters are optional. See table below for more details.
    RetrospectiveDaysIntegerThis is an optional parameter.

    Anchor
    listfavperson
    listfavperson

    These are the main parameters that you must set in the PersonFavourite object for this web service call:

    PersonFavourite Element

    Data Type

    Description

    PersonId

    Integer

    ID of the user to remove the report from their favourite list. This value could be the user ID or user's email address, depending on the Logon ID method.

    ContentTypeString

    This optional parameter can be set to filter the result by a specific content type. Values could include:

    • REPORT
    • REPORTGROUP
    • DISCUSSIONGROUP
    • REPORTVIEW
    • STORYBOARD
    • IMAGE
    ContentIdIntegerThis optional parameter can be used to restrict the result to a specific content by providing its internal ID.

     

     

    Request Example

    Below is a SOAP XML example for this request:

    Code Block
    languagexml
    themeConfluence
     <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <web:remoteAdministrationCall> 
             <arg0>
                <loginId>admin@yellowfin.com.au</loginId>
                <password>test</password>
                <orgId>1</orgId>
                <function>LISTPERSONFAVOURITES</function>
                <favourite>
                	<personId>5</personId>
                </favourite>     
             </arg0>
          </web:remoteAdministrationCall>
       </soapenv:Body>
    </soapenv:Envelope>

     

     

    Response Parameters

    The returned response will contain the following parameter:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS
    • FAILURE

    Personfavourites

    PersonFavourite[]

    An array containing the user's favourite objects.

     

     

    Response Example

    The service will return the below response, according to our SOAP example:

    Code Block
    languagexml
    themeConfluence
     <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
          <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
             <return>
                <errorCode>0</errorCode>
                <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
                <messages>Web Service Request Complete</messages>
                <personfavourites>
                   <contentId>61209</contentId>
                   <contentType>REPORTGROUP</contentType>
                   <creationCode/>
                   <creationDate>2017-06-26</creationDate>
                   <creatorId>0</creatorId>
                   <favouriteType>REPORTDASHBOARD</favouriteType>
                   <message/>
                   <personId>5</personId>
                   <textEntityId>0</textEntityId>
                </personfavourites>
                <personfavourites>
                   <contentId>61250</contentId>
                   <contentType>REPORTGROUP</contentType>
                   <creationCode/>
                   <creationDate>2017-06-26</creationDate>
                   <creatorId>0</creatorId>
                   <favouriteType>REPORTDASHBOARD</favouriteType>
                   <message/>
                   <personId>5</personId>
                   <textEntityId>0</textEntityId>
                </personfavourites>
                <sessionId>09123071f17afb11be74ca07a6d25aef</sessionId>
                <statusCode>SUCCESS</statusCode>
             </return>
          </ns2:remoteAdministrationCallResponse>
       </S:Body>
    </S:Envelope>

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    • Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:

      Code Block
      languagejava
      AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      
      rsr.setLoginId("admin@yellowfin.com.au");
      rsr.setPassword("test");
      rsr.setOrgId(1);
      
      rsr.setFunction("LISTPERSONFAVOURITES");
    • Identify a user by using a PersonFavourite object:

      Code Block
      languagejava
      PersonFavourite pf = new PersonFavourite();
      pf.setPersonId(13073);
    • The following steps are optional, and can be included to filter the response of this call.

      • To retrieve the user's favourite reports:

        Code Block
        languagejava
        pf.setContentType("REPORT");    	
        pf.setFavouriteType("FAVOURITE");



      • To retrieve all of the user's dashboard:

        Code Block
        languagejava
        pf.setContentType("REPORTGROUP");
        pf.setFavouriteType("REPORTDASHBOARD");



      • To retrieve reports and dashboards distributed to the user:

        Code Block
        languagejava
        pf.setContentType("REPORTGROUP"); 			// use this for dashboards, or pf.setContentType("REPORT") to get distributed reports
        pf.setFavouriteType("INBOX");



      • To retrieve discussions that the user is a member of:

        Code Block
        languagejava
        pf.setContentType("DISCUSSIONGROUP");
        pf.setFavouriteType("DISCUSSIONMEMBER");



      • To retrieve user's favourite views:

        Code Block
        languagejava
        pf.setContentType("REPORTVIEW");



      • To retrieve user's favourite storyboards:

        Code Block
        languagejava
        pf.setContentType("STORYBOARD");
        pf.setFavouriteType("FAVOURITE");



      • To get user's profile image:

        Code Block
        languagejava
        pf.setContentType("IMAGE");
        pf.setFavouriteType("PROFILE");



      • To retrieve report comments flagged by the user:

        Code Block
        languagejava
        pf.setContentType("COMMENT");
        pf.setFavouriteType("FLAGGED");



    • Add this object to the request:

      Code Block
      languagejava
      rsr.setFavourite(pf);



    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode and PersonFavourites parameters. See the Response Parameter table above for details on this.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ listpersonfavourites.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ listpersonfavourites.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    <%        	
    /*          	ws_listpersonfavourites.jsp                                 	*/
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au");      	// provide your Yellowfin webservices admin account
    rsr.setPassword("test");                                                    	// change to be the password of the account above
    rsr.setOrgId(1);
    rsr.setFunction("LISTPERSONFAVOURITES");
     
    PersonFavourite pf = new PersonFavourite();
    pf.setPersonId(13073);
    pf.setContentType("REPORT");
     
    rsr.setFavourite(pf);
     
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
     
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
               out.write("<br>Success");
               if (rs.getPersonfavourites() != null)
               for (PersonFavourite f: pf){
                    out.write("<br><br>contentId: " + f.getContentId());
                	out.write("<br>ContentType: " + f.getContentType());
                	out.write("<br>CreationCode: " + f.getCreationCode());
       	     		out.write("<br>CreationDate: " + f.getCreationDate());
               		out.write("<br>CreatorId: " + f.getCreatorId());
                	out.write("<br>FavouriteType: " + f.getFavouriteType());
            		out.write("<br>Message: " + f.getMessage());
         	    	out.write("<br>PersonId: " + f.getPersonId());
                	out.write("<br>textEntityId: " + f.getTextEntityId());
               }
    } else {
                out.write("Failure");
                out.write(" Code: " + rs.getErrorCode());
    }
    %>
    
    
    

     


     

    ...

    Expand
    titleREMOVEPERSONFAVOURITE

    This web service call removes an item or object from a specific user's favourite list, such as a report, storyboard, view, etc. It also allows a dashboard tab to be removed from a user's dashboard, and even unflag a comment flagged by a user.

     

    Request Parameters

    The following parameters should be passed with this request:

    Request Element

    Data Type

    Description

    LoginId

    String

    An admin account to connect to Yellowfin web services. This can be the user ID or the email address, depending on the Logon ID method.

    This account must have the “web services” role enabled, and must belong to the default (i.e. primary) org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web service function. Set this to "REMOVEPERSONFAVOURITE".

    FavouritePersonFavouriteThis object is used to specify the items to be removed as a user's favourite. The user is also specified here. See the table below for more details.

    Anchor
    listfavperson
    listfavperson

    These are the main parameters that you must set in the PersonFavourite object for this web service call:

    PersonFavourite Element

    Data Type

    Description

    PersonId

    Integer

    A mandatory parameter to identify the user with their internal ID (that is, the IP ID). The items selected will be removed as this user's favourite.

    ContentTypeString

    This mandatory parameter is used to specify the content type of the item to be removed as favourite. Possible values include:

    • REPORT
    • REPORTGROUP
    • DISCUSSIONGROUP
    • REPORTVIEW
    • STORYBOARD
    • IMAGE
    ContentIdIntegerThis mandatory parameter is used to define the item that is to be marked as the user's favourite by providing its internal ID.
    FavouriteTypeStringThis is required to remove reports or dashboards as the user's favourite.
    CreationCodeString 
    TextEntityIdInteger

    This parameter is required if a comment is to be unflagged.

     

     

    Request Example

    Below is a SOAP XML example for this request:

    Code Block
    languagexml
    themeConfluence
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <web:remoteAdministrationCall> 
             <arg0>
                <loginId>admin@yellowfin.com.au</loginId>
                <password>test</password>
                <orgId>1</orgId>
                <function>REMOVEPERSONFAVOURITE</function>
                <favourite>
                	<personId>13000</personId>
                	<contentType>REPORTGROUP</contentType>
                	<contentId>61209</contentId>
                </favourite>     
             </arg0>
          </web:remoteAdministrationCall>
       </soapenv:Body>
    </soapenv:Envelope>

     

     

    Response Parameters

    The returned response will contain the following parameter:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS
    • FAILURE

     

     

    Response Example

    The service will return the below response, according to our SOAP example:

    Code Block
    languagexml
    themeConfluence
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
          <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
             <return>
                <errorCode>0</errorCode>
                <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
                <messages>Web Service Request Complete</messages>
                <sessionId>0cc3673ed857e1e28fb0e326b8f3b24e</sessionId>
                <statusCode>SUCCESS</statusCode>
             </return>
          </ns2:remoteAdministrationCallResponse>
       </S:Body>
    </S:Envelope>

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    • Start with a basic request for this function, which includes logging in as the admin user and specifying the web service call to perform:

      Code Block
      languagejava
      AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      
      rsr.setLoginId("admin@yellowfin.com.au");
      rsr.setPassword("test");
      rsr.setOrgId(1);
      
      rsr.setFunction("REMOVEPERSONFAVOURITE");
    • Identify a user throught the PersonFavourite object:

      Code Block
      languagejava
      PersonFavourite pf = new PersonFavourite();
      pf.setPersonId(13073);
    • Specify the objects that are to be removed as favourites in this object:

      Code Block
      languagejava
      pf.setContentId(61252);
      pf.setContentType("REPORTVIEW");



    • Add this object to the request:

      Code Block
      languagejava
      rsr.setFavourite(pf);



    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response will contain the StatusCode parameter. See the Response Parameter table above for details on this.

       

     

     

    Complete Example

    Below is a full example of this web service call. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_ removepersonfavourite.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, and admin user according to your environment.
    4. Run http://<host>:<port>/ws_ removepersonfavourite.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    <%        	
    /*          	ws_removepersonfavourite.jsp                          	*/
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);    	// adjust host and port number
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
     
    rsr.setLoginId("admin@yellowfin.com.au");      		// provide your Yellowfin web services admin account
    rsr.setPassword("test");                            // set to the password of the account above
    rsr.setOrgId(1);
    rsr.setFunction("REMOVEPERSONFAVOURITE");
     
    PersonFavourite pf = new PersonFavourite();
    pf.setPersonId(13073);
    pf.setContentId(70270);
    pf.setContentType("REPORTVIEW");
     
    rsr.setFavourite(pf);
     
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
     
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
                  	out.write("<br>Success");
                  	
    } else {
                  	out.write("Failure");
                  	out.write(" Code: " + rs.getErrorCode());
    }
    %>