Skip to main content

Notifications

Microsoft Dynamics CRM forum

Plugin to export

Posted on by 595

Hello All,

Is there any way to export the marketing list of campaign using a plugin instead of standard export feature?

Can SSRS report be created using plugin?

Any ideas?

*This post is locked for comments

  • Verified answer
    Tim Dutcher Profile Picture
    Tim Dutcher 2,100 on at
    RE: Plugin to export

    Abhilash, it looks like you started multiple forum threads on pretty much the same requirement: getting a list of marketing list members into Excel with one or two clicks in the CRM UI.

    As I and others have previously stated, there are many ways to get this done programmatically.

    I've used the ClosedXml open source library with CRM plug-ins in the past and it worked very well. I wrote a blob post about this a while back... mscrmrocks.blogspot.com/.../export-all-entity-field-values-to-excel.html

    Here's a page that shows how you use ILMerge to combine ClosedXml with a CRM plug-in: mscrmrocks.wikispaces.com/Extending+CRM+Workflows+with+ClosedXML

    So, basically, your custom button can run a JavaScript function that saves a value on the campaign or creates a new "Export Request" entity... anything that will cause a plug-in to fire. Then, in the plug-in, you get the campaign id and from there you can get the marketing lists and the members. Use ClosedXml to create an Excel worksheet in memory and populate. Then, you can attach the Excel file to the campaign, send it out as an email, or use JavaScript to steam it back out to the end-user.

    This is just one possibility.  I'll let others comment on some other ways to get this done.

  • Abhilash M abi Profile Picture
    Abhilash M abi 595 on at
    RE: Plugin to export

    Hello Tim,

    I have some knowledge of writing plugins can you provide some ideas of making the marketing list members into excel ?

  • Tim Dutcher Profile Picture
    Tim Dutcher 2,100 on at
    RE: Plugin to export

    From a campaign record, it takes three clicks to get to the members view for a marketing list and export that list.  1) Click on marketing list, 2) click to view members, 3) click to export the list to Excel. Am I correct that your users want to consolidate those three clicks into one click?  If so, then you'll need to write some custom code for this.

    There are lots of programmatic ways to get data from CRM directly into an Excel file. Are you familiar with writing CRM plug-ins? Do you know C# or VB.NET?  I can suggest ways to make this a one-click process but first I need to know whether you or your colleagues are able to write some code to handle this.

    You might also look into solutions such as Inogic's "one click" CRM add-on to see if it meets your needs. http://www.inogic.com/blog/2015/10/word-excel-or-pdf-now-exporting-in-dynamics-crm-is-1-click/

    -Tim

  • Abhilash M abi Profile Picture
    Abhilash M abi 595 on at
    RE: Plugin to export

    Hello Tim,

    The user wants the export from the Campaign Form, So it is possible to export the marketing lists of campaign?

    I mean if user clicks a custom button in the campaign form, only certain marketing lists should be exported. This is the requirement.

  • Tim Dutcher Profile Picture
    Tim Dutcher 2,100 on at
    RE: Plugin to export

    From what form or view do you want to provide the ability to export a marketing list?

    If users navigate to the marketing list members view, they can use the provided Export to Excel button.

  • Abhilash M abi Profile Picture
    Abhilash M abi 595 on at
    RE: Plugin to export

    Hello Tim,

    We have a requirement in which our client wants a button "Button1", upon clicking this button marketing lists in the campaign should be exported as excel.

    So can we use the existing Export functionality for campaign or do we need a custom plugin.

    Any ideas?

  • Tim Dutcher Profile Picture
    Tim Dutcher 2,100 on at
    RE: Plugin to export

    Please further explain the requirements. The more details you provide, the more likely it is you will get a helpful response.

    Yes, there is a way to retrieve the members of a marketing list programmatically and yes, technically, you could create a deploy an SSRS report within a plug-in (for on-premises CRM), but that is not something I've ever heard of anyone doing.

    If you provide more details about what you're trying to achieve then someone can help you with this.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

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,867 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,173 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans