ProstDev ProstDev

Posts tagged DataWeave

49 ProstDev posts tagged DataWeave — tutorials, guides, and write-ups on DataWeave.

Basic Google Big Query operations with a Salesforce sync demo in Mule 4

Basic Google Big Query operations with a Salesforce sync demo in Mule 4

In this post, I would like to demonstrate in a few steps how we can make a sync job that allows us to describe a Salesforce instance and use a few objects to create a full schema of those objects (tables) into a Google Big Query Dataset. Then with the schema created we should be able to push some data into BigQuery from Salesforce and see it in our Google Cloud Console project.

Mar 1, 2022

DataWeave Parsing Date Modes: SMART, STRICT, and LENIENT

DataWeave Parsing Date Modes: SMART, STRICT, and LENIENT

We know that in DataWeave the types can be coerced from one type to another. For that we use the as operator. There is a property called mode that we can use when we are parsing date and time values. The mode parameter has three different valid values: SMART, STRICT, and LENIENT. The default mode when you are parsing dates is SMART.

Jul 13, 2021

Dynamic Variable in MuleSoft

Dynamic Variable in MuleSoft

On one of my assignments, I was presented with a rather peculiar demand: to write the records belonging to a unique identifier in a variable. The catch was, we do not know how many such unique identifiers are going to come in a particular batch. The flow will read an excel file and, based on the query string, we'll segregate the records -using a foreach component- and send an email with the final payload.

Jun 8, 2021

Using Salesforce Search in Mule 4

Using Salesforce Search in Mule 4

One of the most used actions when we work with Salesforce integrations is the use of query. But there's one action we don't use very often: the Salesforce Object Search Language (SOSL). In this post we walk through a Mule 4 application that uses SOSL to validate Contacts and Leads and decide whether to update or create records.

Jan 26, 2021

Custom Modules in Mule 4 - DataWeave 2.0

Custom Modules in Mule 4 - DataWeave 2.0

Some days ago, I started using this great functionality in DataWeave (DW) 2.0 - Mule 4, and I faced some challenges while creating the code. I'll explain what a custom module is, why you would want to use it, some examples on how you can use it, and finally, how to load properties into this module.

Jul 16, 2020

Combining Objects: Concatenation in DW 2.0

Combining Objects: Concatenation in DW 2.0

What is object concatenation and how to use it in Mule 4 - DataWeave (DW) 2.0. Similar to concat or + functions in other languages, in DW you can use ++ (plus plus), using {( )} and {([ ])} parentheses object destructors with or without arrays. Learn more about MuleSoft here!

May 28, 2020

Browse all topics in the tag directory or head back to the blog.

Search

Loading search…