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

Notifications

Announcements

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)
  • 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

  • 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

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

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
iampranjal Profile Picture

iampranjal 66

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 51 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 40 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans