Find sitecore items with a specific OMS profile?

你离开我真会死。 提交于 2019-12-02 06:26:49
John West

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.

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!