Update tax rates sample flow

Summary

This example is an action that updates the tax rate percentage based on the customer location. If the customer location is Colorado then the tax rate is 5%. If the customer location is Arizona then the tax rate is 6.5%.

Update tax rates sample

Step: Start

Inputs

No configuration is needed.

Outputs

No configuration is needed.

Context
- record: Record
- oldRecord: Record
- action: Action

Step: If CO

Inputs
Label Type Value Description

Condition

Condition

record.field('customer.address.state').val() === 'CO'

Outputs

No configuration is needed.

Context
- record: Record
- oldRecord: Record
- action: Action

Step: If AZ

Inputs
Label Type Value Description

Condition

Condition

record.field('customer.address.state').val() === 'AZ'

Outputs

No configuration is needed.

Context
- record: Record
- oldRecord: Record
- action: Action

Step: Update tax rate Colorado

Inputs
Label Type Value Description

Record

record

context.record

Tax Rates

percentage

0.05

Outputs
Name Type Description

updatedRecord

record

put in context == false

Context
- record: Record
- oldRecord: Record
- action: Action

Step: Update tax rate Arizona

Inputs
Label Type Value Description

Record

record

context.record

Tax Rates

percentage

0.65

Outputs
Name Type Description

updatedRecord

record

put in context == false

Context
- record: Record
- oldRecord: Record
- action: Action

Step: End

Inputs
Label Type Value Description

Return result

boolean

If true it will return the final result of the flow.

Outputs

No configuration is needed.

Context
- record: Record
- oldRecord: Record
- action: Action
Back to top