08-22-2014 12:48 PM
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;
}
}
}
09-09-2014 06:01 PM
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.