Fetch Custom Parameters using the Client Side API in Sage CRM

By | November 30, 2021

In Sage CRM customizations most of the time we need parameters to be used in the code. As far as server side programming is concerned, there are several ways by which we can get URL values and use them. Complexity increases when it comes to client-side scripting. One needs to write code which parses URL and extracts required value from it.

New Stuff: Notify if Quote is expired in Sage CRM

Client-side API introduced in Sage CRM 7.2 onwards. These additional parameters may also be added to URLs when a page is redirected. These parameters can be read by the Client-Side API just like any system parameter or context information.

The API has a method called “getArgs()” that allows the URL to be parsed very easily. Browser Console can be used to view all the parameters which we can find the value of. Refer below image.

For example, we have taken the “Act” Parameter which display the Act value in On-screen coaching.

Also, we can add a custom parameter in URL and show the value in On-screen coaching.

In the below screenshot, we have added the “Flag” parameter in URL and value is Test.

Here is the code for accessing URL parameters.

var contextInfo = crm.getArgs();

Sage CRM Client side API can be viewed at below URL.

Hope this information helps!

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.

Greytrix has some unique integration solutions developed for Sage CRM with Sage ERPs namely Sage X3Sage IntacctSage 100Sage 500, and Sage 300. We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users, and Sage PSG worldwide. Greytrix helps in the migration of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes addons like  Greytrix Business ManagerSage CRM Project ManagerSage CRM Resource PlannerSage CRM Contract ManagerSage CRM Event ManagerSage CRM Budget PlannerGmail IntegrationSage CRM Mobile Service SignatureSage CRM CTI Framework.

Greytrix is a recognized Sage Champion Partner for GUMU™ Sage X3 – Sage CRM integration listed on Sage Marketplace and Sage CRM – Sage Intacct integration listed on Sage Intacct Marketplace. The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.

For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.