Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
MuleSoft for Salesforce Developers

You're reading from   MuleSoft for Salesforce Developers A practical guide to deploying MuleSoft APIs and integrations for Salesforce enterprise solutions

Arrow left icon
Product type Paperback
Published in Feb 2025
Publisher Packt
ISBN-13 9781835882320
Length 518 pages
Edition 2nd Edition
Languages
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Arul Christhuraj Alphonse Arul Christhuraj Alphonse
Author Profile Icon Arul Christhuraj Alphonse
Arul Christhuraj Alphonse
Akshata Sawant Akshata Sawant
Author Profile Icon Akshata Sawant
Akshata Sawant
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Part 1: Getting Started with MuleSoft
2. Chapter 1: Introduction to APIs and MuleSoft FREE CHAPTER 3. Chapter 2: Designing Your API 4. Chapter 3: Exploring Anypoint Studio and Anypoint Code Builder (ACB) 5. Chapter 4: Introduction to Core Components 6. Chapter 5: All About Anypoint Platform 7. Part 2: A Deep Dive into MuleSoft
8. Chapter 6: Learning DataWeave 9. Chapter 7: Transforming with DataWeave 10. Chapter 8: Building Your Mule Application 11. Chapter 9: Deploying Your Application 12. Chapter 10: Securing Your API 13. Chapter 11: Testing Your Application 14. Part 3: Integration with Salesforce and Other connectors
15. Chapter 12: MuleSoft Integration with Salesforce 16. Chapter 13: MuleSoft Connectors and Use Cases 17. Chapter 14: MuleSoft Best Practices, Tips, and Tricks 18. Chapter 15: Certification and Interview Tips 19. Chapter 16: AI and Automations with MuleSoft 20. Index 21. Other Books You May Enjoy

Writing DataWeave scripts

Now that we understand the basics of the DataWeave language, let’s start learning how to write DataWeave scripts. In this section, you’ll learn about operators, selectors, variables, functions, and scope and flow control. These will give you the basics so that you can start transforming your data.

Using operators

If you come from a different programming language background, you probably already know what operators are – those characters that help you transform or compare data. Let’s take a look at the different types of operators in DataWeave and their purpose.

Mathematical operators

These operators transform two values into one. They’re mostly used for numbers but they can also be used with other data types:

  • Addition (+): This operator adds two values. It can be used to add date and time-related types and numbers or to append a new item to an array (for example, 1 + 2).
  • Subtraction (-): This operator...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime