How to compare Small Int data type used in Enumeration in Adobe Campaign | Community
Skip to main content
February 16, 2021
Solved

How to compare Small Int data type used in Enumeration in Adobe Campaign

  • February 16, 2021
  • 2 replies
  • 1458 views

We have a field which is am Integer 8 (Small Int). It is present as an enumeration.

How to compare its values in a CRM Connector

eg @2533677 == 0 gives error as we cannot compare small Int with integer

      @2533677 == '0' gives error as we cannot compare small Int with String

ToString() and Tointeger() functions also fail and does not work on small Int.

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 Alolika

We have solved this problem by using 

IfEquals(ToString(@field),'0' ,'ABC' ,'Error');

 

in CRM Connector.

Where field was an integer 8 bit (Small Int).

== did not work

2 replies

Manoj_Kumar
Community Advisor
Community Advisor
February 16, 2021

Hello @alolika 

 

You can compare it like this.

 

ToString(@FIELD) == ToString(0)

 

Let me know if this works.

 

Thanks

 

 

 

Manoj  | https://themartech.pro
AlolikaAuthorAccepted solution
February 17, 2021

We have solved this problem by using 

IfEquals(ToString(@field),'0' ,'ABC' ,'Error');

 

in CRM Connector.

Where field was an integer 8 bit (Small Int).

== did not work