How to verify the file path and its accessibility in Sage ERP X3

By | February 24, 2017

checkpath is a function that allows you to verify if a file path is in the white list of the engine and can be accessed.

Syntax: checkpath(FILE_PATH,ACCESS_MODE)

Parameters:

  • FILE_PATH is the path of a file or a directory which accessibility must be checked. The files do not need to exist, the only check that is done is the control against the white list. For example, if C:\tmp\subdir\myfile.src is checked and if C:\tmp is in the white list, the return is positive even if the subdir folder does not exist.
  • ACCESS_MODE can have the value 0 (if you want to check the read access) or 1 (if you want to check the write access).

This function returns a 1 if the requested access rights are not denied by the white list definition; otherwise, it returns a 0.

Example:

Local Integer I : I= checkpath(“D:\Projects\Biorec-OTL\SPEZOTL_TRT”,0)

infbox ”+num$(I)

verify file path and accessibility in Sage ERP X3

Hope this blog helps!

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

Greytrix caters to a wide range of Sage Enterprise Management (Sage X3) offerings – a Sage Business Cloud Solution. Our unique GUMU™ integrations include Sage Enterprise Management (Sage X3) for Sage CRMSalesforce.com and Magento eCommerce along with Implementation and Technical Support worldwide for Sage Enterprise Management (Sage X3). Currently we are Sage Enterprise Management Implementation Partner in East Africa, Middles East, Australia, Asia. We also offer best-in-class Sage X3 customization and development services, integrated applications such as POS | WMS | Payment Gateway | Shipping System | Business Intelligence | eCommerce and have developed add-ons such as Catch – Weight  and Letter of Credit for Sage Enterprise Management to Sage business partners, end users and Sage PSG worldwide.

Greytrix is a recognized Sage Rockstar ISV Partner for GUMU™ Sage Enterprise Management – Sage CRM integration also listed on Sage Marketplace; GUMU™ integration for Sage Enterprise Management – Salesforce is a 5-star app listed on Salesforce AppExchange.

For more information on Sage X3 Integration and Services, please contact us at x3@greytrix.com. We will be glad to assist you.