Expand my Community achievements bar.

SOLVED

How to access current entity attributes and/or increment entity attributes?

Avatar

Level 2

I haven't been able to figure out how to access the value of the current entity anywhere and can't find any explanation in the docs.

 

In this specific case, I want to track the number of times members of certain Audience have viewed an item. Right now I have an Activity which updates a boolean entity attribute once a single member of that Audience has viewed the item. However, what I want to do is get the current number of views and then increment it.

 

This is one example, but it's something I'm repeatedly running into when I need to update an entity attribute based on its current value.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Are you collecting per visitor count of how many times an experience is shown (which would be done by using profile attributes: https://experienceleague.adobe.com/en/docs/target/using/audiences/visitor-profiles/profile-parameter...), or need to have a global value you can increment? If the latter and you are using Target in conjunction with Adobe Analytics or CJA, you could get the view amounts from there.

The entity attributes will not cover this, as at least to my knowledge they're a one-way method. The only way to handle global value incrementation I can see would be server-side, outside of Target.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

Are you collecting per visitor count of how many times an experience is shown (which would be done by using profile attributes: https://experienceleague.adobe.com/en/docs/target/using/audiences/visitor-profiles/profile-parameter...), or need to have a global value you can increment? If the latter and you are using Target in conjunction with Adobe Analytics or CJA, you could get the view amounts from there.

The entity attributes will not cover this, as at least to my knowledge they're a one-way method. The only way to handle global value incrementation I can see would be server-side, outside of Target.

Avatar

Level 2

Thanks for your answer, that confirms what I was able to discover. Seems it would require updating via the API and building the authentication part is pretty labor intensive on our end so this would be a great feature to have. It's not the first time we've needed to do something like this