Answered by:
Backing Up Solutions in TFS

Question
-
Hello,
I would like to best understand how we can take regular back up's of our solutions nightly .. We use TFS manually checking in and out solution .. Is there a way this can be automated .....
Thanks
Every day i learn something new.
Monday, October 20, 2014 10:09 PM
Answers
-
hi,
please see the following article.
http://waelhamze.com/2013/11/25/how-to-create-an-automated-tfs-build-for-dynamics-crm-solutions/
Jithesh
- Proposed as answer by Guido PreiteMVP Tuesday, October 21, 2014 3:26 AM
- Marked as answer by CRM_Beginner Tuesday, October 21, 2014 7:51 PM
Tuesday, October 21, 2014 12:45 AM
All replies
-
You can retrieve the solution via code. So you can set up a batch process to pull the solution for your nightly backup.
Here's the example from the SDK, you can see more there:
// Retrieve a solution String solutionUniqueName = "samplesolution"; QueryExpression querySampleSolution = new QueryExpression { EntityName = Solution.EntityLogicalName, ColumnSet = new ColumnSet(new string[] { "publisherid", "installedon", "version", "versionnumber", "friendlyname" }), Criteria = new FilterExpression() }; querySampleSolution.Criteria.AddCondition("uniquename", ConditionOperator.Equal, solutionUniqueName); Solution SampleSolution = (Solution)_serviceProxy.RetrieveMultiple(querySampleSolution).Entities[0];
The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.
- Proposed as answer by Wayne Walton Monday, October 20, 2014 10:18 PM
Monday, October 20, 2014 10:18 PM -
Thanks Wayne, but i am not sure how i would go about doing this as I am new to CRM ?
Every day i learn something new.
Monday, October 20, 2014 10:33 PM -
Well, this isn't specific to CRM, really. If you download the CRM SDK, you can find the connection strings needed to authenticate to CRM, and then a practical example of how to use the above code. Then you just need to make a batch process to call the Solution you have in CRM and store it locally so TFS can pull it locally. This is more traditional software dev than real CRM development.
The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.
Monday, October 20, 2014 10:52 PM -
hi,
please see the following article.
http://waelhamze.com/2013/11/25/how-to-create-an-automated-tfs-build-for-dynamics-crm-solutions/
Jithesh
- Proposed as answer by Guido PreiteMVP Tuesday, October 21, 2014 3:26 AM
- Marked as answer by CRM_Beginner Tuesday, October 21, 2014 7:51 PM
Tuesday, October 21, 2014 12:45 AM