Login / Register  search  syndication  about

          SalesLogix Questions & Answers

Your place to get answers to your SalesLogix related questions.

 Home  |   Subscribe via RSS  |   Subscribe via E-mail  |   

How Do I Cast Enums Correctly in SalesLogix?

Question: My History.Type is now an enums.  The below returns the message, "cannot convert type 'int' to 'System.Enum'"

objH.StartDate = DateTime.Now;
objH.Duration = 0;
objH.Type=(Enum)(262148);
objH.Timeless = false;
objH.Description = this.pklStatus.Text;
objH.Attachment = false;

//write the record
objH.Save();

How do I cast enums correctly?

Answer: You need to make the following change -

objH.Type = Sage.Entity.Interfaces.HistoryType.atNote

What's This?
  
Bookmark and Share

About SalesLogix Support

   Your SalesLogix Business Partner for SalesLogix Support.


Related Content
   I receive an error when I try to run the SalesLogix sysdbafix_script.
I receive an error when I try to run the SalesLogix sysdbafix_script. I have: * Windows Serve
Posted on Jun 05, 2013 by SalesLogix Support to SalesLogix Questions & Answers
 
   Web Core Update 03 Now Available for v8
This is an important update that includes several new features as well as addressing multiple defects.&nb
Posted on Jun 05, 2013 by Scott Weber to SalesLogix Product Blog
 
   Can I add Services as Products in SalesLogix?
Can anyone recommend a way to add Services as Products? We are a services based business and our quot
Posted on Jun 04, 2013 by SalesLogix Support to SalesLogix Questions & Answers
 
   Is there an issue with the SalesLogix Web Administrator version 8.0 in regards to adding users to Team Membership?
Question: In my database, it appears two users belonging to the same teams, have access to a different am
Posted on May 22, 2013 by SalesLogix Support to SalesLogix Questions & Answers
 
   FREE Open Source Add-ons for SalesLogix version 8 web
SalesLogix is developing a number of FREE add-on solutions for SalesLogix version 8 web. Some of the
Posted on May 22, 2013 by Scott Weber to SalesLogix Product Blog
 
Comments

No Comments
All contents Copyright © 2013 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register