Cast boolean to string transform function
Introduction
The cast boolean to string transform function is used to change the data type associated with a source field from boolean
to string
.
A boolean
data type can have only two possible states: true
or false
.
Adding a cast boolean to string transform
Step 1 In your process flow, access settings for your map shape:
![](https://doc.wearepatchworks.com/~gitbook/image?url=https%3A%2F%2F2440044887-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FLYNcUBVQwSkOMG6KjZfz%252Fuploads%252FMJ0uFKnEdEv40l4D7WZZ%252Freplace%2520transform%25200.png%3Falt%3Dmedia%26token%3D621d3646-b89f-4383-899f-33462b8698ea&width=768&dpr=4&quality=100&sign=10f610bc&sv=1)
Step 2 Select the add transform button for the required mapping rule - for example:
![](https://doc.wearepatchworks.com/~gitbook/image?url=https%3A%2F%2F2440044887-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FLYNcUBVQwSkOMG6KjZfz%252Fuploads%252FFxux95XTFBkq4SADyIm5%252Freplace%2520transform%25201.png%3Falt%3Dmedia%26token%3D874f99cc-5d29-4ee8-ad83-f048d6909237&width=768&dpr=4&quality=100&sign=6a6d3d30&sv=1)
Step 3 Click the add transform button:
![](https://doc.wearepatchworks.com/~gitbook/image?url=https%3A%2F%2F2440044887-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FLYNcUBVQwSkOMG6KjZfz%252Fuploads%252FQANVCDb8TeHqq9goVe6J%252Freplace%2520transform%25202.png%3Falt%3Dmedia%26token%3Dda01cae6-c482-407c-ac3d-16182205b12f&width=768&dpr=4&quality=100&sign=91ba7740&sv=1)
Step 4 Click in the name field to access a list of all available transform functions, then select cast boolean to string from the other category:
![](https://doc.wearepatchworks.com/~gitbook/image?url=https%3A%2F%2F2440044887-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FLYNcUBVQwSkOMG6KjZfz%252Fuploads%252FjFqlOmz1FiR18l9cYVCV%252Fcast%2520boolean%2520to%2520string%25201.png%3Falt%3Dmedia%26token%3D5e439fc5-1b72-4260-bdf8-1d307daf95b9&width=768&dpr=4&quality=100&sign=7f7e18f4&sv=1)
Step 5 Click the add field button:
![](https://doc.wearepatchworks.com/~gitbook/image?url=https%3A%2F%2F2440044887-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FLYNcUBVQwSkOMG6KjZfz%252Fuploads%252Fm3oSQXYREaIihNkaekuV%252Fcast%2520boolean%2520to%2520string%25202.png%3Falt%3Dmedia%26token%3D5bfc4eb3-1ac1-4934-9d25-1bee0a8efc10&width=768&dpr=4&quality=100&sign=b07a78e6&sv=1)
Step 6 Click in source fields and select the source field to be used for this transform:
![](https://doc.wearepatchworks.com/~gitbook/image?url=https%3A%2F%2F2440044887-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FLYNcUBVQwSkOMG6KjZfz%252Fuploads%252FhD9dBLMute4m3K27hcu3%252Fcast%2520to%2520string%25203.png%3Falt%3Dmedia%26token%3D0c012240-9068-4a66-8ad7-27b5820c41cf&width=768&dpr=4&quality=100&sign=1f3ea432&sv=1)
Step 7 Accept your changes (twice).
Step 8 Save the transform. You'll notice that the transform icon is updated to indicate that a transform function is present for the mapping row - for example:
![](https://doc.wearepatchworks.com/~gitbook/image?url=https%3A%2F%2F2440044887-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FLYNcUBVQwSkOMG6KjZfz%252Fuploads%252FdR0IAeIOagMrlT1o3fsi%252Freplace%2520transform%25207%2520transform%2520added.png%3Falt%3Dmedia%26token%3D7aea61a3-d975-49c4-9d99-33cc83ff7195&width=768&dpr=4&quality=100&sign=61df79a7&sv=1)
Last updated