• Connecting to an external REST with an XML header

    I am trying to connect to an external REST library that requires the content type to be XML and not JSON. The web service configuration seems to indicate that this should be possible since you can select XML as the the content type during the setup process…
  • Rest API Call with Patch Method

    Hi, I'm writing a interface between Sage X3 and an external platform through Rest API. The GET and POST Method work well, but I can't use the PATCH Method. I have a 400 error code from the platfom, with the message "A non-empty request body is required…
  • Parsing JSON

    Hi, Just wondering if there is any tool (function) I can use to parse JSON string using 4GL. If therse isnt any builin function avaiable then what would be the best way to parse the REST JSON data. Thanks
  • Trying to return a Using ASYRRESTCLI.EXEC_REST_WSCLB how do I get my RETVAL to bring back more than 250 Chars?

    Hi There I am trying to return a Using ASYRRESTCLI.EXEC_REST_WSCLB how do I get my RETVAL to bring back more than 250 Chars? Here is my code
  • REST Web Services to Show Multiple-dimensional Properties and Their Values

    Greetings everyone, I have faced a bottleneck regarding REST web services and Representation which is I need help to retrieve any data I expected to see from the API platform. Presentation and classes I recently created, both named ''ZGACCENTRYA", which…
  • REST Web services Post a record problem

    why I keep getting this error: "Saving has failed" every time I try to create a new record. Is there an option somewhere that prevents it from creating this new record? What am I missing?
  • Set Timeout for web services rest call using ASYRRESTCLI.EXEC_REST_WS

    When launching a request via REST web service with the ASYRRESTCLI.EXEC_REST_WS instruction against a third party Endpoint, I need to control a certain time in which, if the Endpoint does not respond, to exit the call and return error by TimeOut. Currently…
  • Post detail/child with REST API

    Hello, I'm struggling to POST a new register with the REST API. I tried with my SPE class, representation and Tables. Also tried with SHIPMENT, wich have edit facet. If I set it with no collections, it creates the header, but if I try to create…
  • Subprogram with rest

    Hello everyone I developed a web services(Subprogram) using SOAP, how I can do it again using the REST method, Please can you help
  • Trying to read the products of Magento from X3 using rest api integration and Node JS Error

    Hi All, We are trying to read the product of Magento from Sage X3 using integration methods such as Rest webservices, Node.Js for one of our client. The Magento API endpoints uses 'OAUTH1' type of authorization for authentication of the Rest API requests…
  • How to request for all records of a representation

    Hi, I would like to create a request with GET method using REST API to get all records of a representation. I can get a specific record using https://srve:8124/api1/x3/erp/TEST/SALESREP('XXX')?representation=SALESREP.$details where XXX is a sales…
  • SageX3 Rest API Web Services - how to get contract schema xsd?

    Hello Community, Using Rest API Web Services in Sage X3 how can I get a contract schema definition XSD? The goal here is to get a list of available resources. SDATA documentation ( http://sage.github.io/SData-2.0/pages/core/0401/ ) says it is possible…
  • why i can't set query of VACITM facet to yes in ITMMASTER representation

    when i click on the query cell to change it to yes it just jump for initial state, but for some others columns it's ok
  • ERROR When creating new customer throw REST API

    i used all the fields requested from BPCUSTOMER.$details and fill them with same data but i always got same error below : i searched that field (BPC_BPD_REP) in sage x3 and in response but i didn't find it i just found (BPCBPDC_REP)
  • REST Web service Pagination

    Hi everyone, I'm using representations to use the REST web services in sage x3 v12, and it's working fine, but some parameters it seems not to work. I want to do a pagination when I use the $details facet, but it's not working. looking this page…
  • External web services timeout error

    I'm trying to connect to an external IBAN service https://api.iban.com and I've added this to Sage under REST Web Services, however I keep getting a timeout error when trying to do a GET request. The service is available through the server directly…
  • Error - PUT on SORDER with REST API

    Good Morning, I want to do a PUT on SORDER via REST API but it always gives me the same error. However, I can do a GET on SORDER via REST API with no issues. Representation ZSORDER (Copy of SORDER) Trying to change payment term: Resource…
  • API REST Get totalresults and startindex utilization on a X3 endpoint get query

    How can I do to get totalresults and startindex on the JSON result from the webservice on a normal class/representation webservice built on a normal X3 entity? Is this only available for collaboration endpoint? Like users, endpoints and other MONGODB…
  • Sage EM and REST OData

    Hello! I have a customer asking if Sage EM's implementation of REST supports OData ( https://www.odata.org/ ). I've seen some information on other Sage products but nothing specific to Sage EM. Does anyone have any information on this? Thank you,…
  • How can I create Projects (OPPOR) with REST?

    Hi, I'm trying to create projects (GESOPP) through REST Webservice.. I can create into OPPOR table but when I try to create for OPPORCRM (needed to be visible in GESOPP function) get the error message: "A Pre-sales or After-sales step must be…
  • Rest Webservice

    Hi all! X3 V11 I Need to create a new endpoint from an external app, but endpoints are saved in mongo db. Can i use the rest webservices in x3 to create this new endpoint, or is there any other way of doing this from an external app? Any suggestions…
  • Access Quality Control Questions from REST API

    We have a separate Quality Control application that I would like to update the Quality Control record on a stock item automatically. I have not been able to do this with the REST api. First the the quality control detail technical sheet class is of…
  • How do you use the instanceUrl in the REST responses?

    Using the $protoype requests I can see that the representations have instanceUrl property, however I am unable to use these: "$baseUrl": "">servername:8124/.../TESTI", "$baseType": "application/json;vnd.sage=syracuse;vnd.sage.syracuse.representation…
  • Reading data from the REST Web Service

    Hi All, We are calling a REST Web Service via the classic 4GL code with " Func EXEC_REST_WS" . I am using a simple GET to retrieve information. The parameters that are described in the Online Help ( link here ) make use of a Return s parameter.…
  • Sage X3 REST WEB Service Company representation - EDIT

    Hi Im using V11 patch 5. I did a test with the standard representations of Company that comes with the folders , i can read details facet successfully. When i do a PUT request (using Postman) to edit a record on the COMPANY table i get this error…