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!
Greytrix – a globally recognized and one of the oldest Sage Development Partner 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 X3, Sage Intacct, Sage 100, Sage 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 migration of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes addons like Greytrix Business Manager, Sage CRM Project Manager, Sage CRM Resource Planner, Sage CRM Contract Manager, Sage CRM Event Manager, Sage CRM Budget Planner, Gmail Integration, Sage CRM Mobile Service Signature and Sage 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 processing and execution of application programs at the click of a button.
For more information on our integration solutions, please contact us at firstname.lastname@example.org. We will be glad to assist you.