Text Select to Boolean

Case

Assume the source content is an article with a select field of values.

But it needs to sync to a destination field that is a boolean value.

Each source select value should either be true or false at the destination.

We need to be able to:

  1. Change select to a boolean field

  2. Change each select value to the appropriate boolean value

Solution

ImpulseSync can do this with a job, content mapping, and the regex manipulator.

First create a job that will sync the article content to the destination.

The content mapping can be set to sync the field as boolean field.

This will change the select field to a boolean field when syncing the content.

Now we will use multiple regex manipulators to change select text values into boolean values.

These three configs all take a different select text value and replace it with the appropriate boolean value.

Sponsored = true
Paid = true
Blank = false

Last updated