Is there some sample code where we can make CRUD on lookuptable data from a pipeline rule function
i am writing a function that need to search on lookuptable, and if not found, add an entry to it.
i am aware with the built-in pipeline function “lookup” but i didn’t saw in doc if data can be updated outside the dataadapters mechanism
Yes, here is my example
i have a rule which i wrote a java function.that function use one of the message field, and performs a REST call to 3rd party vendor which return a json result.
i want to store that result, so the next same value is used in the message, i can use stored data and not call the API again.
e.g message contains a phone number. i want to check in the function if phone exist in the lookup table. if not, call the API to the telecom company, and save the result in lookup table.next time, same phone is used, i can take the result from lookup.