-
Notifications
You must be signed in to change notification settings - Fork 460
MultipleInputRecipes
pozil edited this page Nov 14, 2024
·
3 revisions
Demonstrates how use multiple input parameters in a DataWeave script in Apex.
Group DataWeaveInApex Recipes
Converts the information of a shopping basket into another currency.
Uses the /dw/multipleInputs.dwl
DataWeave script.
public static String runScriptWithMultipleInputs(String products, String attributes, String exchangeRates)
Name | Type | Description |
---|---|---|
products | String | list of products in the form of a JSON string |
attributes | String | list of product attributes used as a filters in the form of a JSON string |
exchangeRates | String | list of currency exchange rates in the form of a JSON string |
String
script output as an XML string