Community
Showing results for 
Search instead for 
Do you mean 
Reply

Autocreate note for opportunity created in 2010

Avid Listener
Posts: 12
Country: United States

Autocreate note for opportunity created in 2010

Good Morning,

 

I was hoping someone could help me out with a simple task. I auto creat opportunities via the SDK. I am doing this fine. I need to create a note for each of the created opps. I have included the code i am using to acheive this, but am getting an unable to create note error. Any help would be appreciated.

 

Chris

Guid[] AddedOpportunities = { _backMaintainceOpportunity.ID }; Company.UpdateOpportunities(AddedOpportunities, null); Act.Framework.Notes.Note n = _actFramework.Notes.CreateNote(); n.NoteText = "Maint. is paid through - " + SupportPaidThrough; n.Update(); Act.Framework.Opportunities.OpportunityList ol = n.OpportunityList; Guid[] OpportunityNotes = { n.ID }; _backMaintainceOpportunity.UpdateGroups(OpportunityNotes, null); //Set the note for the opportunity _backMaintainceOpportunity.GetNotes = "Maint. is paid through - " + _company.CUST_SupportPaidThrough_030949814.ToString();