Anas Jakwani
02/04/2025, 2:01 PMCeligo AI
02/04/2025, 2:01 PMAI generated answer (using internal Slack threads):In SuiteCommerce Advanced, you can't directly get the IP address of a customer placing an order. However, you can get the IP address of the client machine in a Suitelet by using the
request.remoteAddress
property.
Here is a sample code snippet:
javascript
function suitelet(request, response){
var ipAddress = request.remoteAddress;
// your code here
}
Please note that this will give you the IP address of the client machine that is making the request to the Suitelet, not necessarily the IP address of the customer placing the order.
If you need to capture the IP address at the time of order placement, you might need to create a custom field on the sales order record to store this information, and then populate this field with the IP address when the order is placed.
Remember, this approach requires that you have a mechanism in place on your SCA site to capture the IP address and send it to NetSuite, perhaps as a parameter in the URL or in a hidden form field.
******
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
02/04/2025, 2:01 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829865336
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.812740147
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.807103
Celigo AI
02/04/2025, 2:02 PM