Find sitecore items with a specific OMS profile?

后端 未结 2 1282
独厮守ぢ
独厮守ぢ 2021-01-26 20:42

I have to find all items in Sitecore (or rather, in the contents) that have a certain OMS (marketing suite) profile checked in the \"Tracking\" attribute. The Tracking attribute

相关标签:
2条回答
  • 2021-01-26 21:29

    Ugh, the Tracking field is actually stored as __Tracking. Whoops. So the query ends up being

     fast://*[@__Tracking = '%"Widdly Scuds"%']
    

    This still has problems, as it's still trying to query XML via string operations and I may end up screwed later if a profile and key have the same name, but it works well enough for now.

    0 讨论(0)
  • 2021-01-26 21:41

    If you use query or iterate descendants, avoid starting the query from / if possible - start from the equivalent of /sitecore/content/someitem.

    Another approach is to use a Lucene or other search index. See the Sitecore reference for more info.

    0 讨论(0)
提交回复
热议问题