Summary
We started this chapter by discussing what DataWeave is and how a DataWeave script is structured. Then, we investigated how we can create and deploy a DataWeave script to our environment that is available for Apex to call.
With our script deployed, we saw how simple it was to call the script and retrieve the output we had defined, as well as how simple the testing structure is for Apex to utilize DataWeave scripts.
Finally, we discussed some of the key use cases for DataWeave within Apex and when we should look to use DataWeave within Apex. This chapter is within this book’s section on integrations for Salesforce and how to manage them with Apex precisely – as you are working with more complex payloads through the various integration methods we have seen, you can begin to work with DataWeave so that it can help you map and manipulate data for performant integrations and data mappings.
This chapter finishes our section on integrations. Our discussion of...