Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

Behavior and bot with condition

Hello,
I'm learning how to use bots and need help with the following case that I can't get to run properly.
I have a Behavior named Clock In, which works perfectly when the user executes the Action icon in the view:

HguillenA_0-1719414073794.png

Clock In Behavior settings:

HguillenA_1-1719414160264.png

Consider improving the app by using a bot that can evaluate this condition: 

AND(

[Distance]  > 0,

[Distance] <= 0.025

)

where: Distance is a virtual column in the Team table that has the formula DISTANCE([OfficeLocation], HERE()) as part of separate tests. Everything works fine

The case: I can't get the ClockIN event configured as shown in the image to apply the established condition. That is, it executes the Clock In process always, even if the event condition is false.

Event Setting 

HguillenA_2-1719414617920.png

Process setting

HguillenA_3-1719414645427.png

 

 

 

 

 

 

 

0 5 114
5 REPLIES 5

Please try using [_Thisrow]

Your condition will be: AND([_Thisrow].[Distance]>0, [_Thisrow].[Distance]<=0.025)

 

Hi MiguelPilo,

I adjusted the condition, but it didn't work.   The condition is false but the bot applied the process 

HguillenA_0-1719423987415.png

 

 

I'm according with @Marc_Dillon, you can add your original action and use it at the end of the Team_form.

MiguelPilo_1-1719431236383.png

 

But trying to understand the problem of your bot, you can test the bot and view the detail of TRUE/FALSE condition.

MiguelPilo_2-1719431473828.png

 

I replayed your bot in a sample app, made some trials adding "true" and  "false" rows and bot works OK.

MiguelPilo_0-1719431089930.png

 

I'm not sure why you think a bot is a better solution than the action here.


@HguillenA wrote:

Distance is a virtual column in the Team table that has the formula DISTANCE([OfficeLocation], HERE()


Is OfficeLocation the "UbicacionOficina" from your screenshots? Does it even have a value before the bot fires? Since you're setting it's value with the action, it seems like it wouldn't.

 

Hi Marc_Dillon,

I'm not sure if it's the best option. I'm still learning.

Regarding the UbicacionOficina column... I was just doing some tests.

Top Labels in this Space