Skip to main content

Notifications

Announcements

No record found.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans