Published on : May 25, 2020
URL : https://loantap.in/dummy-app/sample-ps.fetch_by_end_use
Service Description:
Given a end use we will get the list of products ids which will be used at sublan level or maybe the partner level
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
Fetched the distinct object id from loan schema with providedend_use
: - id : product name
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"
]