how to manage dynamics crm Solution Programmatically? - dynamics-crm

I want to create a windows Form App to do This :
Create a new dynamics CRM solution Publisher.
Create 5 Solution with this Publisher .
I have two managed Solution in my SharePoint and I want to import it
to dynamics CRM.
Can anyone tell me how much time I will need to achieve This.
I will be gratefully if you can give me some tips or links to this topic.

i have to give you some bad news
Dynamics SRM has deprecated their API and so the only way currently to create and manage environment is through PowerShell.
here is a link to the modules you are going to need in order to create and manage you Dynamics CRM:
Microsoft.PowerApps.Administration.PowerShell
Microsoft.Xrm.Data.Powershell
Microsoft.Xrm.Tooling.ConfigurationMigration
the last one is a bit tricky so you are looking for the cmdlet - Import-CrmDataFile

Related

Dynamics 8.1 and 365: Is the "Publisher" portable for managed solutions?

We are in the process of creating and publishing a managed solution built on CRM 2016 8.1. This solution is meant to be forward-compatible with 9.x, and we plan to publish it to AppSource.
We may need to migrate our Publisher from one instance of CRM 2016 8.1 to another, and expect to be able to publish and deploy to the AppSource afterwards.
However, after much research, I can't figure out if the Publisher itself is easily migrated.
Let's say in our original instance, instance A, we have exported a managed solution and published it to AppSource.
Now we want to migrate to instance B. We import the unmanaged solution into B, make changes, increment the version number, and export a new version of the managed solution. We now try to publish this as an upgrade to our existing solution in AppSource (or by means of distributing an upgraded managed package to our clients).
Will this work? Or is there something that ties our publisher record to that instance that we need to be aware of?
Publisher information and other solution identification is maintained in the solution and transfers to your target organization. So if you apply your unmanaged solution to another org, that publisher will now exist in the target system, and you should be able to then export an update to a third system.
That being said, I wouldn't be shocked if you ran into issues carrying out this operation. There are still quite a few gotchas lurking within the solution metadata.

how can i migrate my current tfs 2013 custom work items to 2015 visual studio cloud?

I currently use TFS 2013 with custom work items for bugs, change request, requirements and features. I am wondering if I can migrate them to visual studio cloud 2015? is there a tool within VS or 3rd party that can do this?
If you are meaning the vsts. Possibly duplicate with this question: How to migrate work items from TFS to VS Team Services (VS Online) . There has been perfect answer from jessehouwing, suggest use one of below three ways as he suggested:
Use Excel for import/export - Will work for most work items, you loose attachments and work item links other than parent/child. The
trick is to extract from one Project Collection then copy all fields,
except the ID to an Excel sheet bound to the target project
collection. You will need to fix all Identity fields (works best when
users have the exact same display name on premise as in VSTS) and
you'll have to import once with state new and then past the current
state/reason over the just imported values and sync again. Test
Cases, Plans, Suites and Shared Steps will not be imported with their
relations in tact. The approach would be very similar to this
one.
Use the TFS Integration Tools - Will work for most work item types, though it will loose custom kanban states and tags. Test
cases, Shared steps and their relations will not be imported. This
option will allow you to import import work items and source code
with their relationships in tact.
Use a 3rd party solution - Out of the available options currently OpsHub offers the most complete solution. For test case and
source control link migration you're looking at the commercial
edition, which comes at a steep price. It still has a long list of
known issues and last time I tried it, I ran into numerous
issues which required their support to resolve them. PS: You can aslo try the tool as Dave suggested in the comment: VSTS Sync Migration Tools

How to track the changes done in the CRM solution (i.e., like version control)?

We are a distributed development team working on same solution while performing customization for our CRM instance.
At times, it becomes important to know who has done what changes, or which customization has been done by whom. For example, if I would want to know who has added/ modified/ deleted a few fields from a particular entity.
Is there any such provision in Dynamics CRM? And also, if there is approach can follow to track the changes in CRM solution.
Any help on this will be much appreciated.
One option would be the Solution Packager, which will allow you to pack / unpack a CRM solution into / from source control (like TFS)

How to execute CRM workflow when a record is shared

Is there any way to execute a CRM workflow when a record is shared to a user or team in CRM 2015 online?
You can stick a plugin to fire on share. Prob OOTB, there is no way to register a workflow to trigger on share (today anyway I think).
There is no way without development AFAIK. To do that with development you will have to develop a plugin that will handle GrantAccess/ModifyAccess/RemoveAccess message.

Starting a .NET project with Membership and Roles. Guide please

Scenario : A web application with user login, roles and permissions.
Question :
Is it better to start with Visual Studio's / Visual Web developer Express edition's project wizard which contains the user management with it OR start an empty project?
If started with wizard, How can I move the membership and role Database tables to my own database?
Programatically working with Membership and roles. How?
If started with empty project, How can I manage membership and roles etc. ?
How to add new fields in user profile?
I am in student level in .NET. Above are some confusions I encountered while trying to start developing a project. It might be some silly question. Please do not ignore. Guide me with some helpful hints and good links if necessary.
EDIT:
I found a good tutorial here : http://www.codeproject.com/KB/aspnet/ASPDOTNETauthentication.aspx
It solved 50% of my problem.
It sounds like you need to start with some good tutorials on how to do authentication. Here are a couple that I think would be helpful:
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=70
http://www.youtube.com/watch?v=8t1MoIsMUKE
Because you have a student level understanding of .NET, I would recommend practicing a few times using these and other tutorials before trying to do everything you want to do.
As for wizard vs. empty project, I don't like wizards. There is too much I want to change and if I forget about something I end up with code bits hanging around and that is never good.
If you code the system by hand and store your authentication information in a database, you can manage the roles/permissions/etc. with simple SQL calls.

Resources