Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, August 17, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Adding Second Step to CheckOppAccount Business Rule Method
willis
Posts: 22
 
Adding Second Step to CheckOppAccount Business Rule MethodYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Jan 09 3:06 PM
I am trying to get the Insert Opportunity form to "do something" after the user selects an Account from the lookup. The Account lookup's onchange action is set to the ValidationMethod CheckOppAccount. So I figured if I want to ADD additional logic it would be in that Business Rule as a second Primary Step. If I just add the CheckOppAccountStep1 and DO NOTHING ELSE but save, rebuild and redeploy I get this error:

Unable to locate type information 'Sage.BusinessRules.CodeSnippets.OpportunityBusinessRules, Sage.SnippetLibrary.CSharp' for business rule 'Opportunity.CheckOppAccount'
Line 1845: return (Boolean)lib.Execute("Opportunity.CheckOppAccount", methodArgs);

I haven't even added my "do something" code yet. Can anyone help me sort this out?

This is the code generated by the Architect for the CheckOppAccountStep1:

/*
* This metadata is used by the Sage platform. Do not remove.

Sage.SnippetLibrary.CSharp
CheckOppAccountStep1


Sage.Entity.Interfaces.dll
%BASEBUILDPATH%\interfaces\bin\Sage.Entity.Interfaces.dll


Sage.Form.Interfaces.dll
%BASEBUILDPATH%\formInterfaces\bin\Sage.Form.Interfaces.dll


Sage.Platform.dll
%BASEBUILDPATH%\assemblies\Sage.Platform.dll



*/


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

namespace Sage.BusinessRules.CodeSnippets
{
public static partial class OpportunityBusinessRules
{
public static void CheckOppAccountStep1( IOpportunity opportunity, out Boolean result)
{
// TODO: Complete business rule implementation
}
}
}

Much thanks.
[Reply][Quote]
Alexander Pfingstl
Posts: 43
 
Re: Adding Second Step to CheckOppAccount Business Rule MethodYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 09 7:20 AM
I am not sure why you get this.
Just make sure your primary step is activated.
You can only have one primary step. So your code will go in an post execution step.
You can have as many of this steps as you want.
Hope this this helps.
[Reply][Quote]
willis
Posts: 22
 
Re: Adding Second Step to CheckOppAccount Business Rule MethodYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 09 9:22 AM
Thank you for the response, Alex. Odd that you can only have one primary step when the architect allows you to add multiple... but regardless even if I just add a post execution step to the CheckOppAccount business rule, don't modify the code and save it, build it and deploy it, I get the exact same error.

Unable to locate type information 'Sage.BusinessRules.CodeSnippets.OpportunityBusinessRules, Sage.SnippetLibrary.CSharp' for business rule 'Opportunity.CheckOppAccount'
Line 1845: return (Boolean)lib.Execute("Opportunity.CheckOppAccount", methodArgs);
[Reply][Quote]
willis
Posts: 22
 
Re: Adding Second Step to CheckOppAccount Business Rule MethodYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jan 09 11:03 PM
I am still having trouble with this one? Can anyone else reproduce this issue? Simply add a second primary or first post execution step, make no changes to the code and save the CheckOppAccount business rule. Any help would be greatly appreciated. Thanks.
[Reply][Quote]
Alexander Pfingstl
Posts: 43
 
Re: Adding Second Step to CheckOppAccount Business Rule MethodYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Jan 09 1:18 AM
Have you tied to open the csharp library project in vs?
I did that and I tried to compile it and I had an error somewhere in the code.
When I got those kind of errors, it was nearly every time related to an error in my code.
You will find the project under your user profile\appdata\sage\platform\orm
There you will have a directory for it.

Thanks!
Alexander
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 8/17/2025 6:03:31 AM