• 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
  • 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…
  • 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…
  • 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,…
  • 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…