Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Tuned Listener
Posts: 16
Registered: ‎06-25-2013

Extend usings section in a business rule?

I was trying to extend the usings section in a Business Rule, but it is complaing during build about reference.


ERROR - The type or namespace name 'PickList' could not be found (are you missing a using directive or an assembly reference?


#region Usings
using System;
using Sage.Entity.Interfaces;
using Sage.Form.Interfaces;
using Sage.SalesLogix.API;
using Sage.SalesLogix.PickLists;
#endregion Usings


namespace Sage.BusinessRules.CodeSnippets
public static partial class AccountBusinessRules
public static void GetReasonPickListStep(IAccount account, out String result)
name = string.Empty;
try {
IList<PickList> pickListItemsByName = Sage.Saleslogix.Picklists.PickList.GetPickListItemsByName("Account", true);
catch (Exception ex) {
name = string.Empty;

Copper Elite Contributor
Posts: 40
Registered: ‎03-31-2010

Re: Extend usings section in a business rule?

Are you adding the reference directly to the Usings section if so that won't work.  You have to add the the AssemblyReferences Collection property on the snippet.  This allows you to articulate the assembly name as will as the path to find it.



James Sutton