• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

PrenticeWorx

Microsoft Dynamics Vendor

  • Home
  • About Us
    • Why PrenticeWorx?
    • Executive Team
    • Customers & Testimonials
    • Technologies
    • Contact Us
  • Solutions
    • Sales
    • Marketing
    • Service
    • Financial Accounting
    • Portals
    • Business Intelligence
    • Integration
    • Custom
  • Industries
  • Resources
    • Downloads
  • Blog
  • Contact Us

May 12, 2016 By Ken Auton

Getting the Dynamics CRM Organization Name in a Plugin or Workflow

  • All Posts
  • Sales, Service and Marketing
  • Custom Development
  • Tech Tips

The IExecutionContext(IPluginExecutionContext or IWorkflowContext) passed into the Execute function has an attribute of OrganizationName (and OrganizationId) that can be used to get the string representation of the name of the Organization where the plugin or workflow is currently running.  This may be useful if there are several different lanes such as Dev, Test, Stage and production and there are configurations that apply that are different for each one.  It would likely also be useful for verifying licensing information for a managed solution.

 

Filed Under: All Posts, Tech Tips

Ken Auton

Primary Sidebar

Topics

Sales, Service & Marketing
Custom Development
Tech Tips

Latest Articles

  • Landed Cost (Item Charges) in Business Central 
  • Optimizing Your Amazon Sales Strategy: A Guide to Sales Channels and Business Central Integration
  • Build Your Business One Step at a Time With Microsoft Dynamics 365
  • Understanding the “Feedback” feature in Microsoft Dynamics CRM
  • Use queryAll() in SalesForce Scribe Insight Migration to Access all Task and Event Records

Contact Us

Got questions?

We're here to help you get started!

  • This field is for validation purposes and should be left unchanged.

Contact PrenticeWorx: 8 East Broadway, Suite 600, Salt Lake City, UT 84111 | Email: info@prenticeworx.com | Phone: 385-202-4003

Copyright © 2025 PrenticeWorx · All rights reserved.