Timeline for xDB Xconnect.Contact returning null value
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 19, 2021 at 14:39 | history | became hot network question | |||
May 19, 2021 at 11:01 | history | edited | Marek Musielak♦ | CC BY-SA 4.0 |
added 647 characters in body; edited tags
|
May 19, 2021 at 9:22 | answer | added | Himmat Singh Dulawat | timeline score: 1 | |
May 19, 2021 at 9:19 | comment | added | Peter Procházka | Please update your question with textual representation of code not screenshot. It's impossible to crawl this question for crawlers properly otherwise. Thanks | |
May 19, 2021 at 7:57 | comment | added | Kanniyappan Krishnan | In the first place I am identifying contact by using Account.user name | |
May 19, 2021 at 7:57 | answer | added | Marek Musielak♦ | timeline score: 5 | |
May 19, 2021 at 7:48 | comment | added | Marek Musielak♦ | And how do you identify your contact in the first place? Is it anonymous user? or a known one? | |
May 19, 2021 at 7:19 | comment | added | Kanniyappan Krishnan | I need xconnect contact. If I'm using Tracker.current.Contact I'm getting cannot implicitly convert type Sitecore. Analytics.tracking.contact to Sitecore.Xconnect.Contact | |
May 19, 2021 at 6:57 | comment | added | Marek Musielak♦ |
And why do you try to get contact from XConnectClient ? Isn't what you have in Tracker.Current.Contact enough?
|
|
May 19, 2021 at 6:55 | comment | added | Kanniyappan Krishnan | Xdb is enabled and I'm calling this function in rendering controller. It is returning contact | |
May 19, 2021 at 6:42 | comment | added | Marek Musielak♦ |
Do you use your code in any of Sitecore (pre?)request pipelines or in the code of your rendering controller? Do you have Xdb.Enabled and Xdb.Tracking.Enabled ? Which of conditions return false for you? Is that contact a returning contact or a new one? Doesn't Tracker.Current.Contact contain what you need?
|
|
May 19, 2021 at 6:37 | history | asked | Kanniyappan Krishnan | CC BY-SA 4.0 |