How to create a reminder to show all customers tha...
# ask-stanley-ai
p
How to create a reminder to show all customers that do not have the DKK currency attached to their record?
c
AI generated answer (using internal Slack threads):
To create a reminder to show all customers that do not have the DKK currency attached to their record, you can use a combination of SuiteScript and workflows in NetSuite. Here's a high-level approach: 1. Create a custom field on the customer record, let's call it 'Currency Check'. This field will be used to store a boolean value indicating whether the customer has DKK currency attached or not. 2. Write a SuiteScript that runs on the customer record load event. This script should check the currency field of the customer record. If the currency is not DKK, it should set the 'Currency Check' field to true. 3. Create a workflow that triggers on the customer record view event. This workflow should check the 'Currency Check' field. If it's true, it should show a reminder to the user. Here's a pseudo-code example of the SuiteScript:
Copy code
javascript
function beforeLoad(context) {
    if (context.type !== context.UserEventType.VIEW)
        return;

    var customerRecord = context.newRecord;
    var currency = customerRecord.getValue('currency');

    if (currency !== 'DKK') {
        customerRecord.setValue('custentity_currency_check', true);
    }
}
Please note that you need to replace 'currency' and 'custentity_currency_check' with the actual field IDs in your NetSuite account. Remember, this is a high-level approach and might need adjustments based on your specific NetSuite setup and requirements. ****** 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.803671
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.802130282
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.79659
Please provide your feedback on this answer.