Published on : May 26, 2020

URL : https://loantap.in/dummy-app/sample-ps.fetch_label

Service Description: Fetch all the products by end use

Input 1 :

[template.end_use]

Usage :

[template.set end_use="travel-or-holiday" /]
[product_services.products.fetch_by_end_use end_use={template.end_use} o.set=template.products/]

Logic : Declare the end_use

Get Products from the loan_scheme of specified end_use

  • Fetched the distinct object id from loan schema with provided end_use:
    • id : end use
  • Return the list of the array with product ids.

Return the product array.

Sample Output :

  array(3) 
[
    0 => string(18) "lt-holiday-step-up"
    1 => string(29) "lt-holiday-term-loan-reducing"
    2 => string(19) "lt-holiday-emi-free"
]