Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Cif framework v2 getEnvironment

(0) ShareShare
ReportReport
Posted on by 5

Hi,

Hello, I have a problem when obtaining the results of the getEnvironment method.

I use this method to know what type of page the user is on and if he is in an entity and even to know the identifier of said entity.

If the Omnichannel user creates a session and is placed, for example, in a contact, if I execute getEnviromnet() I do not receive the following attributes in the result: appid, etn, id, pagetype.

But if I create the session with the createSession() method and then execute getEnviroment() I do receive them and I can know where the user is located.

To say that this behavior only occurs with Omnichannel, if I do the same with version 1 of the Cif framework on the CRM Hub, both when the user browses or if I create the page, the same attributes are always returned.

Please, any help?

Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans