3
votes

I would like to know how we can define our customer LookUpTable in DataWeave.

I am not able to find options to define custom LookUpTable

I am looking for some lookup options like how we do it in DataMapper as below

enter image description here

Can Someone help me with this

2

2 Answers

1
votes

What kind of custom LookUpTable are you trying to do? Have a look at the data weave docs section 13.3.1 which explains how to call external flows, this may help.

1
votes

Refer the below url's might be helpful- first link explains the way where datamapper used to have ( where in datamapper itself in table format you have defined the custom datas whereas in dataweave externally create .csv or .txt for lookup and refer it via scripts

https://gandham38.wordpress.com/2016/08/19/dataweave-lookup-example/

Custom Lookup in dataweave

https://forums.mulesoft.com/questions/59409/how-to-properly-use-the-dataweave-lookup-function.html