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 :
Microsoft Dynamics CRM (Archived)

Access Excel sheet from a plugin

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

I have a requirement where the data is mapped in an excel sheet based on a lookup value user names assigned to that lookup value in that excel sheet needs to be retrieved, this template has around 210+ records the most inefficient way of doing it would be to write if else statements for all of them. Also since this data mapping doesn't need to be present in the system, I ruled out the option of creating a new entity by converting excel sheet into records of that entity, the only efficient option I feel is being able to access this excel sheet as part of the plugin project file and do retrieve the user value from the sheet based on the entity's lookup value. When I tried doing that I got the below error

An exception has occurred in the [Wendys.Crm.Plugins.ProjectMilestoneGenerator].
An unhandled exception has occurred during execution of the plugin.
{System.TypeLoadException} from {Wendys.Crm.Plugins} - Could not load type 'Microsoft.Office.Interop.Excel._Application' from assembly 'Wendys.Crm.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bb2727b96c9cb15e'. The type is marked as eligible for type equivalence, but the containing assembly is not loaded as fully trusted.

Please let me know if any one has experienced this previously or do have any suggestions.

Thanks in advance,

Vinod

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Preeti Sharma Profile Picture
    2,678 on at
    RE: Access Excel sheet from a plugin

    Hi,

    Dynamics 365 does not allow external dlls . You can use ILMerge and then try to deploy plugin again.

    Below link may help you:

    community.dynamics.com/.../using-ilmerge-for-plugin-in-crm

    Hope this helps:)

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,626 on at
    RE: Access Excel sheet from a plugin

    Hi,

    you need to use ILmerge to merge the dlls.

    community.dynamics.com/.../296352

    www.microsoft.com/.../details.aspx

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans