web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

OrganizationService Query - SSIS Script Task

(0) ShareShare
ReportReport
Posted on by 35

I am trying to get some records from the mscrm online in the VSTA project that opens up when you click Edit Script button inside Script Task Editor for SSIS package. I am following a mix of these two tutorials https://nishantrana.me/2020/10/19/connect-to-dynamics-365-through-script-component-ssis/  and  https://community.dynamics.com/crm/b/nishantranaweblog/posts/metadata-contains-a-reference-that-cannot-be-resolved-https-orgname-crm8-dynamics-com-xrmservices-2011-organization-svc-wsdl-amp-sdkversion-9-error-in-dynamics-365 . But I am still getting weird errors. The problem being this project seems to be automatically created so I can't install Nuget Packages like a normal project and I am having to old code. Could someone please copy paste the kind of code they have used for an SSIS script project to query CRM? Perhaps even using Kingswaysoft libraries? Thank you very much!

I have the same question (0)
  • Evangelizt Profile Picture
    35 on at

    Correction to above: ....The problem being this project seems to be automatically created so I can't install Nuget Packages like a normal project so I am having to add xrm.sdk to gac manually etc as mentioned in the tutorial but I am still getting error after error. Could someone please copy paste the kind of C# code they have used for an SSIS script project to query CRM? Perhaps even using Kingswaysoft libraries? Thank you very much!

  • Daniel Cai Profile Picture
    935 on at

    SSIS VSTA Project is not a full .NET development environment, it does not really have support for Nuget Packages. If you need to use a particular Nuget library, you would have to extract the the library using a full VS project, and then add as a .NET library reference to the VSTA project. The VSTA project is a fairly restricted environment, you have to be creative sometimes when working with it. 

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans