Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Referencing external assemblies from plugin or custom workflow activity

(2) ShareShare
ReportReport
Posted on by

As per my understanding if I have a plugin dll or a custom workflow activity dll that references another dll (my own class library not registered in the GAC) the only way to register such a plugin with CRM Online is after I run ILMerge to merge both the dlls in to one correct? Because CRM does not support external references in its Sandboxed mode. 

Are there any alternatives here?

*This post is locked for comments

  • cranialsurge Profile Picture
    cranialsurge on at
    RE: Referencing external assemblies from plugin or custom workflow activity

    Thanks Scott, is there a reason behind the preference? Does ILMerge have any perf. concerns?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Referencing external assemblies from plugin or custom workflow activity

    Merging the Dlls is the only option.

  • Suggested answer
    ScottDurow Profile Picture
    ScottDurow 19 on at
    RE: Referencing external assemblies from plugin or custom workflow activity

    If it is your own assembly - you would be better off adding the code to your plugin and compiling it in rather than using ILMerge.

  • Suggested answer
    Royal King Profile Picture
    Royal King 27,686 on at
    RE: Referencing external assemblies from plugin or custom workflow activity

    There is no other option other than merging dll's using ILMerge tool to refer your custom DLL in plugin or workflow. One other option would be writing your own web service or WCF service and consume that service  using actions in CRM. in this case you can have all your logic within the service.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans