Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Highlighted
Copper Contributor
Posts: 22
Registered: ‎08-17-2009

error with EntityFactory.Create for new Activity

[ Edited ]

Here is my code to create a new business rule that creates a new activity:


   Sage.Entity.Interfaces.IActivity iact = Sage.Platform.EntityFactory.Create<Sage.Entity.Interfaces.IActivity>();  
   iact.AccountId=accountsamples.Accountid;
   iact.Type=ActivityType.atPhoneCall;

   iact...
   iact.Save;

 

I'm getting this error:

 

"Only assignment, call, increment, decrement, and new object expressions can be used as a statement"

 

My code looks just like other examples I've seen?  Anyone seen/solved this issue?

 

TIA

 

Mike Fortier

BrainSell Technologies

Highlighted
Copper Contributor
Posts: 22
Registered: ‎08-17-2009

Re: error with EntityFactory.Create for new Activity

Solved.  My fault...

 

It's iact.Save(), not iact.Save