Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Answered

How to open form from UCI as UI

Posted on by 120

My situation is, I work in 365 on-premise UCI I have a vanilla entity which is not supported in UCI Service/Activity there for if I try to open a new entity form with Xrm.Navigation.openForm I get an error - Non-UCI entity detected. How can I fix it? or is there a way to open the form as simple UI from UCI?

  • Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: How to open form from UCI as UI

    I will try and will update you.

  • damka Profile Picture
    damka 120 on at
    RE: How to open form from UCI as UI

    on the page onload event I tried to use this:

    Xrm.Page.context.getQueryStringParameters() and location.search.slice(1).split('&');

    and I get only  : etc: "4214"

    pagemode: "iframe"

    No matter what I do I get only that data (2 -key value)

  • Suggested answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: How to open form from UCI as UI

    No.

    But try by passing data attribute at the end of url and with below link you can read the data.

    https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg334511(v=crm.8)?redirectedfrom=MSDN#getquerystringparameters

    Please let me know if it not worked for you.

  • damka Profile Picture
    damka 120 on at
    RE: How to open form from UCI as UI

    thanks it works' I can't pass params in any way I tried :|
    
    one way:
    
    var features = "";
    
       var extraqs = "&entt="   sourceEntityTypeName   "&entID="   Xrm.Page.data.entity.getId();
    
       window.open("organization/.../main.aspx  
    
           encodeURIComponent(extraqs), "_blank", features, false);  
    
    second way :
    
    "organization/.../main.aspx   "&entt="   sourceEntityTypeName   "&entID="   Xrm.Page.data.entity.getId();
    
    the form is open but no data is passed did you try to pass params?

  • Verified answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: How to open form from UCI as UI

    Hi,

    I tried the below url with window.open and it worked.

    https://yourorgname.crm.dynamics.com/main.aspx?forceClassic=1&pagetype=entityrecord&etn=<entitylogicalname>&id=<recordguid>

    Also this method worked.

    Xrm.Navigation.openUrl("<add your url as specified above>")

  • damka Profile Picture
    damka 120 on at
    RE: How to open form from UCI as UI

    I tried to do this, but still got an error:

     var pageInput = {
            pageType: "custom",
            name: "https://organization/CRMDEV/main.aspx?forceCLASSIC=1&etc=4214&pagetype=entityrecord&extraqs=?etc=4214&newWindow=true&histKey=130120890#5625895"
        };
        Xrm.Navigation.navigateTo(pageInput).then(
            function success() {
                // Run code on success
            },
            function error() {
                // Handle errors
            }
        );

  • damka Profile Picture
    damka 120 on at
    RE: How to open form from UCI as UI

    it looks like I can't mark it on that entity, it's not clickable
    8231.uci.PNG

  • Suggested answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: How to open form from UCI as UI

    Hi,

    Please check below link:

    https://blog.magnetismsolutions.com/blog/harshaniperera/2019/09/23/quickly-switch-between-the-classic-mode-and-the-unified-interface-in-dynamics-365

    You can use above logic to open form in classic mode.

  • Suggested answer
    Naveen Ganeshe Profile Picture
    Naveen Ganeshe 3,393 Moderator on at
    RE: How to open form from UCI as UI

    Hi damka ,

    Make sure you have enabled the entity definition: customization -> entities-> select the entity and check it's definition-> check option 'Enable for mobile '.

    Take a look at this thread: community.dynamics.com/.../selected-entity-is-not-valid-for-this-client-non-uci-entity-detected-when-closing-an-opportunity

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,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans