Muhammad Hafiz
09/05/2024, 8:32 AMCeligo AI
09/05/2024, 8:32 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems like you are trying to transform a sales order into a return authorization using the SuiteTalk REST API. However, you are encountering an error. The error message you are receiving indicates that there might be an issue with the item you are trying to add. The error message "Error while accessing a resource. Please choose an item to add." suggests that the item you are trying to add might not be valid or is not being recognized by the API. Here is the API call you are trying to make:
POST <https://xxxxxxx-sb1.suitetalk.api.netsuite.com/services/rest/record/v1/salesOrder/><sales-order-id>/!transform/returnAuthorization
{
"item": {
"items": [
{
"item": {
"id": "<item-id>"
}
}
]
}
}
Ensure that the sales order ID and item ID you are using are valid and exist in your NetSuite account. Also, make sure that the item exists on the order.
If you are still encountering issues, you might want to consider using the SOAP API. According to one of the conversations, you can use the initialize
operation to set up a record and then perform an add
operation. Alternatively, you can set the createdFrom
element and use Keyed Sublists
to match your items.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
09/05/2024, 8:32 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.843491077
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.812629938
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.809876263
Celigo AI
09/05/2024, 8:32 AMMuhammad Hafiz
09/05/2024, 8:37 AMrico
09/05/2024, 2:18 PMMuhammad Hafiz
09/05/2024, 2:19 PM