web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Client API: All AddCustomView implementations broke overnight

(0) ShareShare
ReportReport
Posted on by 4

Hi,

since this morning every implementation of the client API method addCustomView I have in the system has broken.

pastedimage1611054350393v1.png

Here is an example of a method for the bookable resource lookup in PSA time entries:

// only show bookable resources that are project team members
setBookableResourceCustomView() {
    let fetchXml = `
        
            
                
                
                
                
                
                    
                
                    
                        
                            
                        
                    
            
        
    `;

    let layoutXml = ''
    let bookableResourceControl = this.formContext.getControl('msdyn_bookableresource');
    let viewId = '1acbdc8f-4c1c-4091-9209-b9e60b665cfb'
    bookableResourceControl.addCustomView(viewId, 'bookableresource', 'Assigned resources', fetchXml, layoutXml, true);
}

 
I've tried different fetch xmls and layout xmls. Nothing seems to be working. Has anyone experienced this?
I have the same question (0)
  • cloflyMao Profile Picture
    25,210 on at

    Hi, Thomas

    As your entities and their relationships are custom type, I have tried to create a lookup view with addCustomView method for Account entity in the main form of Contact.

    You can refer to this piece of code to modify your JS.

    8468.c1.png

    Then you can see a view named as "A Lookup View" being created in the field ‘Account Name’ of Contact main form.

    1460.c2.png

    And it can search by the condition set in the fetchXML.

    7180.c3.png

    Regards,

    Clofly

  • Suggested answer
    prt33k Profile Picture
    6,907 on at

    Hi Thomas,

    I believe you need to open a support ticket with Microsoft. The error looks like an internal CRM error.

    Thanks,

    Prateek

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 47 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans