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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

virtual entity and link-type="outer"

(0) ShareShare
ReportReport
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.
 
 
I have the same question (0)
  • Esteban Coto Alfaro Profile Picture
    on at
    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.

  • Kirsan Profile Picture
    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

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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 179 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 110

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 61 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans