getting a sales order from the rest api that has s...
# ask-stanley-ai
l
getting a sales order from the rest api that has special characters in the externalID? For example, a sales order with external id 'SHP 123' Trying '/services/rest/record/v1/salesOrder/eid:SHP 123' results in an error
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that special characters in the externalID of a sales order can cause issues when using the REST API. The only special characters that seem to be allowed are underscore (_) and hyphen (-). Other special characters, such as a slash (/), can cause the API call to fail. When you try to access a sales order with an externalID that contains special characters, like in your example '/services/rest/record/v1/salesOrder/eid:SHP 123', it results in an error because the API does not support these characters. If you need to use special characters in your externalIDs, you might want to consider using a different method to access your sales orders, such as SOAP or SuiteScript, which appear to be more lenient with special characters. However, it's generally recommended to avoid using special characters in externalIDs where possible to prevent potential issues. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.838104069
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826958239
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826786757
Please provide your feedback on this answer.