0

Say I have a page item, that has the profile card set, how would I retrieve that value?

1

You can use Sitecore.Analytics.Data.ProfileUtil to retrieve the tracking field and profile data.

Example to retrieve the first profile set on the item:

var profiles = ProfileUtil.GetProfiles(item, out var trackingField);
return profiles?.FirstOrDefault()?.Name;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.