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

Set Variables Actions - Events should have set/no-set logic

Avatar

Avatar
Validate 1
Level 4
gflare
Level 4

Likes

33 likes

Total Posts

52 posts

Correct Reply

18 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
gflare
Level 4

Likes

33 likes

Total Posts

52 posts

Correct Reply

18 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
gflare
Level 4

26-11-2018

Events need the same type of set/no-set logic based on the value that is available to sprops and evars within the "Set Variables" action block.

With variables, as it works today, if eVar2 is set to a data element that returns an empty string - it will not set the variable or send the info within the record call (default functionality, that is also optional - great stuff! ).

With events, it doesn't seem like we have this choice.  We should be able to set the value of an event to a data element that can return something like 'False' or an 'empty string' , controlling whether or not the event really gets set with the record.

2 Comments

Avatar

Avatar
Contributor
Level 8
Antti_Ko
Level 8

Likes

270 likes

Total Posts

151 posts

Correct Reply

1 solution
Top badges earned
Contributor
Validate 10
Validate 1
Shape 25
Shape 1
View profile

Avatar
Contributor
Level 8
Antti_Ko
Level 8

Likes

270 likes

Total Posts

151 posts

Correct Reply

1 solution
Top badges earned
Contributor
Validate 10
Validate 1
Shape 25
Shape 1
View profile
Antti_Ko
Level 8

09-08-2019

I'm hoping out of the box logic for populating events based on the value of eVar variable. Let's say I'm tracking form submissions and using eVar5 for form name. Based on form name I want to populate event1 if form name was "offer request" and maybe populate only event2 if form name is "contact form". Now I have to use custom code to achieve this, but would be cool to easily choose these kind of settings directly in the UI of rule/launch. This way I can have only one rule for different kind of form submissions. Bit stupid example, but you get the idea.

In this idea you are only talking about "false" and "empty string", but I guess my idea would be pretty much the same thing or did you meant something else?

Avatar

Avatar
Validate 1
Level 4
gflare
Level 4

Likes

33 likes

Total Posts

52 posts

Correct Reply

18 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
gflare
Level 4

Likes

33 likes

Total Posts

52 posts

Correct Reply

18 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
gflare
Level 4

14-08-2019

Both our ideas are the same thing, just in a slightly different way.  For your example, I would set event2 equal to a new data-element, then I can use that data element to evaluate eVar5 and return a value (even if that value returned is an empty string, which would sobsequently NOT set the event on the record).

This event2 = %DataElement% approach allows you to do a true/false type thing (which your use case describes), as well as set the event to a value if needed.  It even handles the simple use case where you want the event on any record where eVar5 is present ( event2 = D=v5 ).