Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Boost 1
Level 1
Alolika
Level 1

Likes

2 likes

Total Posts

2 posts

Correct Reply

1 solution
Top badges earned
Boost 1
Affirm 1
View profile

Avatar
Boost 1
Level 1
Alolika
Level 1

Likes

2 likes

Total Posts

2 posts

Correct Reply

1 solution
Top badges earned
Boost 1
Affirm 1
View profile
Alolika
Level 1

16-02-2021

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 @FIELD == 0 gives error as we cannot compare small Int with integer

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

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 1
Level 1
Alolika
Level 1

Likes

2 likes

Total Posts

2 posts

Correct Reply

1 solution
Top badges earned
Boost 1
Affirm 1
View profile

Avatar
Boost 1
Level 1
Alolika
Level 1

Likes

2 likes

Total Posts

2 posts

Correct Reply

1 solution
Top badges earned
Boost 1
Affirm 1
View profile
Alolika
Level 1

17-02-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

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
MVP
_Manoj_Kumar
MVP

Likes

104 likes

Total Posts

301 posts

Correct Reply

97 solutions
Top badges earned
Validate 1
Contributor
Ignite 1
Shape 1
Give Back 5
View profile

Avatar
Validate 1
MVP
_Manoj_Kumar
MVP

Likes

104 likes

Total Posts

301 posts

Correct Reply

97 solutions
Top badges earned
Validate 1
Contributor
Ignite 1
Shape 1
Give Back 5
View profile
_Manoj_Kumar
MVP

16-02-2021

Hello @Alolika 

 

You can compare it like this.

 

ToString(@FIELD) == ToString(0)

 

Let me know if this works.

 

Thanks