/// <summary>
 /// Initializes a new instance of the MicrosoftDynamicsCRMrollupfield
 /// class.
 /// </summary>
 public MicrosoftDynamicsCRMrollupfield(string goalattribute = default(string), string _metricidValue = default(string), string rollupfieldid = default(string), string sourceattribute = default(string), bool?isstateparententityattribute = default(bool?), string _createdbyValue = default(string), int?sourcestatus = default(int?), string dateattribute = default(string), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), int?utcconversiontimezonecode = default(int?), long?versionnumber = default(long?), int?importsequencenumber = default(int?), string _createdonbehalfbyValue = default(string), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), string sourceentity = default(string), int?timezoneruleversionnumber = default(int?), string entityfordateattribute = default(string), string _modifiedonbehalfbyValue = default(string), int?sourcestate = default(int?), string _organizationidValue = default(string), string _modifiedbyValue = default(string), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMmetric metricid = default(MicrosoftDynamicsCRMmetric), IList <MicrosoftDynamicsCRMprocesssession> rollupfieldProcessSessions = default(IList <MicrosoftDynamicsCRMprocesssession>), IList <MicrosoftDynamicsCRMasyncoperation> rollupfieldAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMsyncerror> rollupFieldSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>))
 {
     Goalattribute                = goalattribute;
     this._metricidValue          = _metricidValue;
     Rollupfieldid                = rollupfieldid;
     Sourceattribute              = sourceattribute;
     Isstateparententityattribute = isstateparententityattribute;
     this._createdbyValue         = _createdbyValue;
     Sourcestatus                  = sourcestatus;
     Dateattribute                 = dateattribute;
     Createdon                     = createdon;
     Utcconversiontimezonecode     = utcconversiontimezonecode;
     Versionnumber                 = versionnumber;
     Importsequencenumber          = importsequencenumber;
     this._createdonbehalfbyValue  = _createdonbehalfbyValue;
     Modifiedon                    = modifiedon;
     Sourceentity                  = sourceentity;
     Timezoneruleversionnumber     = timezoneruleversionnumber;
     Entityfordateattribute        = entityfordateattribute;
     this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue;
     Sourcestate                   = sourcestate;
     this._organizationidValue     = _organizationidValue;
     this._modifiedbyValue         = _modifiedbyValue;
     Createdby                     = createdby;
     Createdonbehalfby             = createdonbehalfby;
     Modifiedby                    = modifiedby;
     Modifiedonbehalfby            = modifiedonbehalfby;
     Metricid = metricid;
     RollupfieldProcessSessions = rollupfieldProcessSessions;
     RollupfieldAsyncOperations = rollupfieldAsyncOperations;
     RollupFieldSyncErrors      = rollupFieldSyncErrors;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the MicrosoftDynamicsCRMgoal class.
 /// </summary>
 public MicrosoftDynamicsCRMgoal(object computedtargetasoftodaypercentageachieved = default(object), string stretchtargetstring = default(string), int?amountdatatype = default(int?), string _owningbusinessunitValue = default(string), string _rollupquerycustomintegeridValue = default(string), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), string _createdbyValue = default(string), int?inprogressinteger = default(int?), bool?rolluponlyfromchildgoals = default(bool?), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), int?timezoneruleversionnumber = default(int?), object targetmoneyBase = default(object), string _rollupqueryactualintegeridValue = default(string), int?utcconversiontimezonecode = default(int?), string _modifiedbyValue = default(string), string title = default(string), System.DateTimeOffset?goalenddate = default(System.DateTimeOffset?), string _rollupqueryactualdecimalidValue = default(string), string _owningteamValue = default(string), string _rollupqueryactualmoneyidValue = default(string), object exchangerate = default(object), object inprogressdecimal = default(object), bool?consideronlygoalownersrecords = default(bool?), object actualdecimal = default(object), string entityimageid = default(string), object targetdecimal = default(object), object computedtargetasoftodaymoney = default(object), bool?isamount = default(bool?), int?computedtargetasoftodayinteger = default(int?), int?actualinteger = default(int?), object customrollupfieldmoney = default(object), object entityimage = default(object), object actualmoney = default(object), long?versionnumber = default(long?), long?entityimageTimestamp = default(long?), string _owneridValue = default(string), object percentage = default(object), string actualstring = default(string), object customrollupfieldmoneyBase = default(object), int?stretchtargetinteger = default(int?), System.DateTimeOffset?lastrolledupdate = default(System.DateTimeOffset?), object computedtargetasoftodaymoneyBase = default(object), string _modifiedonbehalfbyValue = default(string), int?targetinteger = default(int?), string inprogressstring = default(string), System.DateTimeOffset?goalstartdate = default(System.DateTimeOffset?), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), object inprogressmoneyBase = default(object), string targetstring = default(string), int?fiscalperiod = default(int?), int?statuscode = default(int?), bool?isoverride = default(bool?), string goalid = default(string), string _goalowneridValue = default(string), string _rollupquerycustommoneyidValue = default(string), string _owninguserValue = default(string), string _transactioncurrencyidValue = default(string), string _rollupqueryinprogressdecimalidValue = default(string), int?statecode = default(int?), object stretchtargetmoney = default(object), int?importsequencenumber = default(int?), string _rollupqueryinprogressintegeridValue = default(string), object targetmoney = default(object), string treeid = default(string), string _goalwitherroridValue = default(string), object actualmoneyBase = default(object), string entityimageUrl = default(string), bool?isfiscalperiodgoal = default(bool?), string customrollupfieldstring = default(string), string _rollupqueryinprogressmoneyidValue = default(string), string _rollupquerycustomdecimalidValue = default(string), bool?isoverridden = default(bool?), object stretchtargetmoneyBase = default(object), string _metricidValue = default(string), object computedtargetasoftodaydecimal = default(object), string _createdonbehalfbyValue = default(string), object customrollupfielddecimal = default(object), int?fiscalyear = default(int?), object stretchtargetdecimal = default(object), object inprogressmoney = default(object), int?depth = default(int?), int?rolluperrorcode = default(int?), string _parentgoalidValue = default(string), int?customrollupfieldinteger = default(int?), MicrosoftDynamicsCRMteam owningteam = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMprincipal ownerid = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMgoalrollupquery rollupqueryactualintegerid = default(MicrosoftDynamicsCRMgoalrollupquery), MicrosoftDynamicsCRMgoalrollupquery rollupqueryactualmoneyid = default(MicrosoftDynamicsCRMgoalrollupquery), MicrosoftDynamicsCRMgoalrollupquery rollupqueryactualdecimalid = default(MicrosoftDynamicsCRMgoalrollupquery), MicrosoftDynamicsCRMgoalrollupquery rollupquerycustomintegerid = default(MicrosoftDynamicsCRMgoalrollupquery), MicrosoftDynamicsCRMgoalrollupquery rollupquerycustommoneyid = default(MicrosoftDynamicsCRMgoalrollupquery), MicrosoftDynamicsCRMgoalrollupquery rollupquerycustomdecimalid = default(MicrosoftDynamicsCRMgoalrollupquery), MicrosoftDynamicsCRMgoalrollupquery rollupqueryinprogressintegerid = default(MicrosoftDynamicsCRMgoalrollupquery), MicrosoftDynamicsCRMgoalrollupquery rollupqueryinprogressmoneyid = default(MicrosoftDynamicsCRMgoalrollupquery), MicrosoftDynamicsCRMgoalrollupquery rollupqueryinprogressdecimalid = default(MicrosoftDynamicsCRMgoalrollupquery), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser owninguser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMbusinessunit owningbusinessunit = default(MicrosoftDynamicsCRMbusinessunit), MicrosoftDynamicsCRMsystemuser goalowneridSystemuser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMgoal parentgoalid = default(MicrosoftDynamicsCRMgoal), IList <MicrosoftDynamicsCRMgoal> goalParentGoal = default(IList <MicrosoftDynamicsCRMgoal>), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyid = default(MicrosoftDynamicsCRMtransactioncurrency), MicrosoftDynamicsCRMmetric metricid = default(MicrosoftDynamicsCRMmetric), IList <MicrosoftDynamicsCRMduplicaterecord> goalDuplicateMatchingRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), MicrosoftDynamicsCRMgoal goalwitherrorid = default(MicrosoftDynamicsCRMgoal), IList <MicrosoftDynamicsCRMgoal> goalRollupErrorGoal = default(IList <MicrosoftDynamicsCRMgoal>), IList <MicrosoftDynamicsCRMconnection> goalConnections2 = default(IList <MicrosoftDynamicsCRMconnection>), IList <MicrosoftDynamicsCRMsyncerror> goalSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), IList <MicrosoftDynamicsCRMannotation> goalAnnotation = default(IList <MicrosoftDynamicsCRMannotation>), IList <MicrosoftDynamicsCRMconnection> goalConnections1 = default(IList <MicrosoftDynamicsCRMconnection>), IList <MicrosoftDynamicsCRMasyncoperation> goalAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMduplicaterecord> goalDuplicateBaseRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMprocesssession> goalProcessSessions = default(IList <MicrosoftDynamicsCRMprocesssession>), IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess> goalPrincipalobjectattributeaccess = default(IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess>), MicrosoftDynamicsCRMteam goalowneridTeam = default(MicrosoftDynamicsCRMteam))
 {
     Computedtargetasoftodaypercentageachieved = computedtargetasoftodaypercentageachieved;
     Stretchtargetstring                   = stretchtargetstring;
     Amountdatatype                        = amountdatatype;
     this._owningbusinessunitValue         = _owningbusinessunitValue;
     this._rollupquerycustomintegeridValue = _rollupquerycustomintegeridValue;
     Createdon                             = createdon;
     this._createdbyValue                  = _createdbyValue;
     Inprogressinteger                     = inprogressinteger;
     Rolluponlyfromchildgoals              = rolluponlyfromchildgoals;
     Overriddencreatedon                   = overriddencreatedon;
     Timezoneruleversionnumber             = timezoneruleversionnumber;
     TargetmoneyBase                       = targetmoneyBase;
     this._rollupqueryactualintegeridValue = _rollupqueryactualintegeridValue;
     Utcconversiontimezonecode             = utcconversiontimezonecode;
     this._modifiedbyValue                 = _modifiedbyValue;
     Title       = title;
     Goalenddate = goalenddate;
     this._rollupqueryactualdecimalidValue = _rollupqueryactualdecimalidValue;
     this._owningteamValue = _owningteamValue;
     this._rollupqueryactualmoneyidValue = _rollupqueryactualmoneyidValue;
     Exchangerate                  = exchangerate;
     Inprogressdecimal             = inprogressdecimal;
     Consideronlygoalownersrecords = consideronlygoalownersrecords;
     Actualdecimal                 = actualdecimal;
     Entityimageid                 = entityimageid;
     Targetdecimal                 = targetdecimal;
     Computedtargetasoftodaymoney  = computedtargetasoftodaymoney;
     Isamount = isamount;
     Computedtargetasoftodayinteger = computedtargetasoftodayinteger;
     Actualinteger                    = actualinteger;
     Customrollupfieldmoney           = customrollupfieldmoney;
     Entityimage                      = entityimage;
     Actualmoney                      = actualmoney;
     Versionnumber                    = versionnumber;
     EntityimageTimestamp             = entityimageTimestamp;
     this._owneridValue               = _owneridValue;
     Percentage                       = percentage;
     Actualstring                     = actualstring;
     CustomrollupfieldmoneyBase       = customrollupfieldmoneyBase;
     Stretchtargetinteger             = stretchtargetinteger;
     Lastrolledupdate                 = lastrolledupdate;
     ComputedtargetasoftodaymoneyBase = computedtargetasoftodaymoneyBase;
     this._modifiedonbehalfbyValue    = _modifiedonbehalfbyValue;
     Targetinteger                    = targetinteger;
     Inprogressstring                 = inprogressstring;
     Goalstartdate                    = goalstartdate;
     Modifiedon                       = modifiedon;
     InprogressmoneyBase              = inprogressmoneyBase;
     Targetstring                     = targetstring;
     Fiscalperiod                     = fiscalperiod;
     Statuscode                       = statuscode;
     Isoverride                       = isoverride;
     Goalid = goalid;
     this._goalowneridValue = _goalowneridValue;
     this._rollupquerycustommoneyidValue = _rollupquerycustommoneyidValue;
     this._owninguserValue                     = _owninguserValue;
     this._transactioncurrencyidValue          = _transactioncurrencyidValue;
     this._rollupqueryinprogressdecimalidValue = _rollupqueryinprogressdecimalidValue;
     Statecode            = statecode;
     Stretchtargetmoney   = stretchtargetmoney;
     Importsequencenumber = importsequencenumber;
     this._rollupqueryinprogressintegeridValue = _rollupqueryinprogressintegeridValue;
     Targetmoney = targetmoney;
     Treeid      = treeid;
     this._goalwitherroridValue = _goalwitherroridValue;
     ActualmoneyBase            = actualmoneyBase;
     EntityimageUrl             = entityimageUrl;
     Isfiscalperiodgoal         = isfiscalperiodgoal;
     Customrollupfieldstring    = customrollupfieldstring;
     this._rollupqueryinprogressmoneyidValue = _rollupqueryinprogressmoneyidValue;
     this._rollupquerycustomdecimalidValue   = _rollupquerycustomdecimalidValue;
     Isoverridden                   = isoverridden;
     StretchtargetmoneyBase         = stretchtargetmoneyBase;
     this._metricidValue            = _metricidValue;
     Computedtargetasoftodaydecimal = computedtargetasoftodaydecimal;
     this._createdonbehalfbyValue   = _createdonbehalfbyValue;
     Customrollupfielddecimal       = customrollupfielddecimal;
     Fiscalyear           = fiscalyear;
     Stretchtargetdecimal = stretchtargetdecimal;
     Inprogressmoney      = inprogressmoney;
     Depth                              = depth;
     Rolluperrorcode                    = rolluperrorcode;
     this._parentgoalidValue            = _parentgoalidValue;
     Customrollupfieldinteger           = customrollupfieldinteger;
     Owningteam                         = owningteam;
     Ownerid                            = ownerid;
     Rollupqueryactualintegerid         = rollupqueryactualintegerid;
     Rollupqueryactualmoneyid           = rollupqueryactualmoneyid;
     Rollupqueryactualdecimalid         = rollupqueryactualdecimalid;
     Rollupquerycustomintegerid         = rollupquerycustomintegerid;
     Rollupquerycustommoneyid           = rollupquerycustommoneyid;
     Rollupquerycustomdecimalid         = rollupquerycustomdecimalid;
     Rollupqueryinprogressintegerid     = rollupqueryinprogressintegerid;
     Rollupqueryinprogressmoneyid       = rollupqueryinprogressmoneyid;
     Rollupqueryinprogressdecimalid     = rollupqueryinprogressdecimalid;
     Createdby                          = createdby;
     Createdonbehalfby                  = createdonbehalfby;
     Modifiedby                         = modifiedby;
     Modifiedonbehalfby                 = modifiedonbehalfby;
     Owninguser                         = owninguser;
     Owningbusinessunit                 = owningbusinessunit;
     GoalowneridSystemuser              = goalowneridSystemuser;
     Parentgoalid                       = parentgoalid;
     GoalParentGoal                     = goalParentGoal;
     Transactioncurrencyid              = transactioncurrencyid;
     Metricid                           = metricid;
     GoalDuplicateMatchingRecord        = goalDuplicateMatchingRecord;
     Goalwitherrorid                    = goalwitherrorid;
     GoalRollupErrorGoal                = goalRollupErrorGoal;
     GoalConnections2                   = goalConnections2;
     GoalSyncErrors                     = goalSyncErrors;
     GoalAnnotation                     = goalAnnotation;
     GoalConnections1                   = goalConnections1;
     GoalAsyncOperations                = goalAsyncOperations;
     GoalDuplicateBaseRecord            = goalDuplicateBaseRecord;
     GoalProcessSessions                = goalProcessSessions;
     GoalPrincipalobjectattributeaccess = goalPrincipalobjectattributeaccess;
     GoalowneridTeam                    = goalowneridTeam;
     CustomInit();
 }