Creating URL links for Sage X3 functions in visual processes
The visual process editor is a component that can be used:
You can define most links in the visual process editor using a specific link type in the link dialog opened from an element's toolbar, but you can also create links by using the URL link type. You need to follow some rules to create the relevant URL according to the type of link you want to generate. This document explains how to code these URL links.
{$baseUrl}/CLASS?representation=REPRESENTATION.$facet
{$baseUrl}/CLASS('key_value')?representation=REPRESENTATION.$facet
{$baseUrl}/ITMMASTER?representation=ITMMASTER.$query
{$baseUrl}/ATABLE('BPCUSTOMER')?representation=ATABLE.$details
{$baseUrl}/CACCE('CCT~COMM-001')?representation=CACCE.$summary
/sdata/syracuse/collaboration/syracuse/CLASS?representation=REPRESENTATION.$facet
/sdata/syracuse/collaboration/syracuse/CLASS('key_value')?representation=REPRESENTATION.$facet
/sdata/syracuse/collaboration/syracuse/menuItems?representation=menuItem.$query&where=(statName like 'VEN%25')
displays the list of menu items associated with a statistical code starting with VEN./sdata/syracuse/collaboration/syracuse/users?representation=user.$query
/sdata/syracuse/collaboration/syracuse/users('858cd6ac-558f-436a-b8ae-8884c1f44492')?representation=user.$details
/sdata/syracuse/collaboration/syracuse/users?representation=user.$query&where=(lastName like '%25MARTIN%25')
The URL is formatted as follows:{$baseUrl}/QUERY('query_code')?representation=QUERY~query_code~level.$facet
With QUERY~query_code~level being the break level used to define the columns that appear. The facet is $query.
Additional parameters can be added with syntax ¶meter=value
. The level is usually 1, meaning it displays the first level of grouping. The level where the data is read is &level=x. It might be different from the level used to define the columns to display.
&displayLineNum=true
and &forcedExecution=true
are examples of parameters that can be used.
If ~level is omitted in the QUERY~query_code~level syntax, the graph does not display. &cube=false must be added to the request URL to have a flat mode for statistics. It can be useful if you want to export all the lines to Excel.
Refer to this page to see all the options.
{$baseUrl}/QUERY('MYREQ')?representation=QUERY~MYREQ~1.$query&count=20&level=1&cube=true
The URL is formatted as follows:{$baseUrl}/STATS('stat_code')?representation=STATS~stat_code.$facet
With STATS~stat_code being the code of the statistic defined by stat_code. The facet is $cube.
Additional parameters can be added with syntax ¶meter=value
.
Refer to this page to see all the options.
{$baseUrl}/STATS('MYSTAT')?representation=STATS~MYSTAT.$cube&COMPANY=SAGE
The URL is formatted as follows:{$baseUrl}/PROCESS('PROCESS_CODE')?representation=PROCESS~PROCESS_CODE.$facet
With $facet being the facet ($details). If the process code depends on the legislation, PROCESS_CODE can be PROCESS_CODE~LEGISLATION_CODE.
{$baseUrl}/PROCESS('SALES')?representation=PROCESS~SALES.$details
{$baseUrl}/PROCESS('ACCOUNT~USA')?representation=PROCESS~ACCOUNT~USA.$details
Links to classic page functions can also be defined using a URL. In this case, the syntax is the following:
{$baseTrans}/$sessions?f=FUNCTION/2//M/KEY_VALUE
{$baseTrans}/$sessions?f=FUNCTION
{$baseTrans}/$sessions?f=GESBPC/2//M/MARTIN
{$baseTrans}/$sessions?f=EXETRT