Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8099211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:19:54+00:00 2026-06-05T22:19:54+00:00

I have this code : foreach (PluginAssembly tempPluginAssembly in pluginAssemblyList) { if (!tempPluginAssembly.Name.StartsWith(Microsoft.Crm)) {

  • 0

I have this code :

foreach (PluginAssembly tempPluginAssembly in pluginAssemblyList)
            {
                if (!tempPluginAssembly.Name.StartsWith("Microsoft.Crm"))
                {
                    List<PluginType> pluginList;
                    pluginList = xrmContext.PluginTypeSet.Where(Plugin => Plugin.PluginAssemblyId.Id == tempPluginAssembly.Id).ToList();

                    foreach (PluginType plugin in pluginList)
                    {
                        if (plugin.IsWorkflowActivity == false)
                        {
                            writer.WriteLine(new string[] { tempPluginAssembly.Name, tempPluginAssembly.Description, plugin.Name, String.Empty });
                            ++pluginCount;
                        }
                    }
                }
            }

Basically what it does is retrieve the assemblylist from my crm environment and filter the microsoft assemblies. Then, I retrieve every PluginType object contained in those assemblies and I log the information somewhere. But this isn’t enough, I want to retrieve the steps that are contained in each of the PluginType objects.

How can I manage that? Is there a class I don’t know about or an Attribute in the PluginType objects that I don’t know about?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:19:56+00:00Added an answer on June 5, 2026 at 10:19 pm

    You need to reference the SdkMessageProcessingStep entity to retrieve plugin steps. You can see the join in the query in the code below.

    foreach (PluginAssembly tempPluginAssembly in pluginAssemblyList)
    {
        if (!tempPluginAssembly.Name.StartsWith("Microsoft.Crm"))
        {
            var pluginList = from plugins in xrmContext.PluginTypeSet
                             join steps in xrmContext.SdkMessageProcessingStepSet on plugins.PluginTypeId equals steps.PluginTypeId.Id
                             where plugins.PluginAssemblyId.Id == tempPluginAssembly.Id
                             select new
                             {
                                 plugins,
                                 steps
                             };
    
    
            //_XrmContext.PluginTypeSet.Where(Plugin => Plugin.PluginAssemblyId.Id == tempPluginAssembly.Id).ToList();
    
            foreach (var plugin_step in pluginList)
            {
                if (plugin_step.plugins.IsWorkflowActivity == false)
                {
                    writer.WriteLine(new string[] { tempPluginAssembly.Name, tempPluginAssembly.Description, plugin_step.plugins.Name, String.Empty });
                    ++pluginCount;
                }
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code here, {foreach from=$cart.cartItems item=item name=cart} <div id=cart2Produkt> <p>{if $item.Product.ID} <a
i have this code right here: <select name=group> <option value=>Choose a group....</option> <?php foreach($groups
I have code that I want to look like this: List<Type> Os; ... foreach
I have this code <% foreach (var item in Model.List) { %> <tr> <td><%:
i have this code: ArrayList list = new ArrayList(); foreach (DataRow dataR in prenume.Rows)
I currently have this code for populating a list of comments to return: foreach
...so I have this code: foreach (var entry in list) { var marginOneEntry =
I have this code: List<string> lineList = new List<string>(); foreach (var line in theFinalList)
So i have this code: foreach (string xmlfilelisted in xmlFileList) { resultXml.Root.Add(XDocument.Load(xmlfilelisted).Root.Elements()); resultXml.Save(filepath); }
I have this code which is passed to Paypal checkout: <?php foreach ($paypalBasket as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.