How to access current entity attributes and/or increment entity attributes? | Community
Skip to main content
MarinCa
Level 2
July 8, 2024
Solved

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

  • July 8, 2024
  • 1 reply
  • 801 views

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.

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 SSampsa

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-parameters), 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.

1 reply

SSampsa
SSampsaAccepted solution
Level 4
October 3, 2024

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-parameters), 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.

MarinCa
MarinCaAuthor
Level 2
October 7, 2024

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