Change the value from Yes to No when loading profiles | Community
Skip to main content
Level 2
October 1, 2024
Solved

Change the value from Yes to No when loading profiles

  • October 1, 2024
  • 1 reply
  • 712 views

In ACS, how can I use the enrichment activity to swap the value of an original field (from a CSV load) to a destination field in a profile so that a Yes becomes a No and a No becomes a Yes?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SatheeskannaK

@andrewjo5 An easy approach would be while loading the data using File Load activity map the behavior of the data import to say when the value is Yes to No and vice versa. If you want to use that in enrichment activity use the functions Iif and setBit to have that changed. Something like below and update that with update activity.

Example: Iif(@emailOptStatus=1, SetBit(@emailOptStatus, 0), 1)

1 reply

SatheeskannaK
Community Advisor
SatheeskannaKCommunity AdvisorAccepted solution
Community Advisor
October 2, 2024

@andrewjo5 An easy approach would be while loading the data using File Load activity map the behavior of the data import to say when the value is Yes to No and vice versa. If you want to use that in enrichment activity use the functions Iif and setBit to have that changed. Something like below and update that with update activity.

Example: Iif(@emailOptStatus=1, SetBit(@emailOptStatus, 0), 1)

Thanks, Sathees