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,...
Answered

Include external references in Plugins Workflow Activity in CRM

(0) ShareShare
ReportReport
Posted on by 299

Hi there everyone,

I have created a code Activity plugin that based on Account confirmation, it should send some of  Account fields to a called API.

for calling that API I had installed Refit Package from NuGet. 

After registering the DLL in plugin registration, and Using it in a workflow, it couldn't load the Refit Assembly, so the workflow going to waiting status.

I have copied The Refit DLL to these directories,

-C:\Program Files\Dynamics 365\CRMWeb\bin

-C:\Program Files\Dynamics 365\Server\bin\assembly 

Do I have to also put main all into the bin\assembly folder?

Do I have to register the Refit DLL?

I'm using Dynamics 365 on premise

Regards,

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Include external references in Plugins Workflow Activity in CRM

    I remember that I had such an issue once and the reason was related to the wrong version of the Framework that plugin assembly used and the target Framework I used.

  • z.sam Profile Picture
    299 on at
    RE: Include external references in Plugins Workflow Activity in CRM

    Hi there,

    Thanks  mobeenmohsin and Andrew for your help,

    from this article www.thrives.be/.../

    I could Merge my DLL with Newtonsoft.Json.dll.

    But I think some version problems I have now, at the end I get ISV error.

    ISV.png

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Include external references in Plugins Workflow Activity in CRM

    Hello,

    The best way for you is to use ILMerge. Check this post on how you can do it - nishantrana.me/.../

  • Verified answer
    mobeenmohsin Profile Picture
    on at
    RE: Include external references in Plugins Workflow Activity in CRM

    Hi, 

    Please find the relevant information using following web links, it will help you to understand the problem and solution.

    Gonzalo Ruiz - Dynamics CRM: Including Reference Assemblies in plugins (gonzaloruizcrm.blogspot.com)

    External dll in custom workflow Dynamics CRM 2013 - Stack Overflow

    How to include external references in Plugins and Workflow Activity in CRM – Rokhri – Microsoft Dynamics 365, ERP Applications

    Thank you.

    Best Regards,

    Mobeen Mohsin

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 182

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 125 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans