Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 671 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 167 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 138 Most Valuable Professional

Product updates

Dynamics 365 release plans