Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

virtual entity and link-type="outer"

Posted on by 5
I have a fech. 
  
    
    
    
    
    
  


I want to get all accounts.

A link-entity is a virtual entity for working with SharePoint via API
But the request goes into the Retrieve Multiple plugin and crashes there.
Perhaps the plugin needs to return a collection of virtual entities. 

But link-type = "outer".

I tried to return an empty context.OutputParameters["BusinessEntityCollection"
from the plugin, but its throw exeption.
 
 
  • Kirsan Profile Picture
    Kirsan 5 on at
    RE: virtual entity and link-type="outer"

    Hello, Esteban

    When I did this fetch my plugin was triggered. He get the query 

      
        
        
      
    

    In this scenario, I have nothing to return from the plugin. I return empty collection

    because "pcrm_sharepointimportapi" is a virtual entity that works via API with SharePoint. It doesn't store all of its entities in CRM.

    If a guide of a specific file or account comes to the plugin, then the plugin returns virtual entities of the file or all files of a specific account.

    var ec = new EntityCollection();
    
    context.OutputParameters["BusinessEntityCollection"] = ec;

    I expect to receive all accounts. From the main request (which I showed in the starter post) bud i get this message
    5736.pic.PNG

  • RE: virtual entity and link-type="outer"

    Hello, could you please show the retrieve multiple that fails?

    Thanks!

    Community Support Team - Esteban

    If this post helps, consider Accept as a solution to help other members find it more quickly.

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,588 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans