Skip to main content

Notifications

Customer Service forum

Return a list of records from plugin to custom action

Posted on by 180

Hello,

How can we pass list of records from plugin to custom action that triggered the plugin. Custom action has 5 output arguments but if plugin has to return say 5 records each having those 5 output parameters to custom action. how do we do this?

Categories:
  • Verified answer
    CRMISKEY Profile Picture
    CRMISKEY 180 on at
    RE: Return a list of records from plugin to custom action

    Hey Ben, Yes. i am still talking about updating the external system records within in dynamics. i then probably have to store the external records within CRM temporarily and delete them once the update is sent out. thanks!

  • Suggested answer
    Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: Return a list of records from plugin to custom action

    You could return an entity collection as that is the only argument that supports an array / collection of results but the result needs to be a set of records within already in CRM and I suspect we are still talking about your external data access.

    Beyond that I would suggest actually telling us what you are aiming to do here. Is it to update a set of internal CRM records / update an external system or something else?

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,818 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,147 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans