Skip to main content

Notifications

Microsoft Dynamics CRM forum
Unanswered

Cif framework v2 getEnvironment

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans