Configuring OCI Credentials for SuiteScript Integration
Learn how to configure OCI credentials for AI features in SuiteScript, enabling access to Oracle Cloud services for enhanced functionality.
For organizations looking to leverage advanced AI functionalities in NetSuite, configuring Oracle Cloud Infrastructure (OCI) credentials is essential. Setting up these credentials allows your company to utilize services such as OCI Generative AI and OCI Document Understanding, enhancing features like Text Enhance and Prompt Studio within SuiteScript.
Why Configure OCI Credentials?
Configuring OCI credentials enables access to Oracle Cloud services beyond the free monthly usage. By establishing an Oracle Cloud account and configuring the required credentials, your company can manage expenses associated with additional OCI services.
Prerequisites
Before you begin, ensure that you have:
- An active Oracle Cloud account. If you do not have an account, refer to Oracle documentation on how to Get an Oracle Cloud Account.
- Access to the following services:
- OCI Generative AI: Follow the documentation for getting access, setting the right policies, and managing your usage.
- OCI Document Understanding: This is essential if you intend to use the N/documentCapture module in your SuiteScript.
Testing Your OCI Configuration
To ensure that your OCI configuration parameters are set up correctly, follow these testing steps within your SuiteScript:
- Add Monitoring Method: Incorporate the
getRemainingFreeUsagemethod right before and after using methods likegenerateTextorevaluatePromptto verify your free usage. - Validate Configuration Values: Ensure that your OCI parameters contain correct values, especially the API Secret IDs and fingerprint settings.
- Run Your Script: If configured correctly, your script should execute smoothly, returning the expected usage count. A SuiteScript error indicates a misconfiguration.
Troubleshooting Common Issues
If an error arises:
- Verify that the OCI configuration parameters match those of your Oracle Cloud account.
- Check that the API Secret IDs are accurate and correspond to the IDs used on the API Secrets page.
- Make sure the OCI fingerprint and private key secrets were generated properly.
- Confirm that the checkbox to use OCI Credentials in SuiteScript settings is enabled if not using the
ociConfigparameters object.
By following these guidelines, you can effectively configure OCI credentials to enhance your organization's NetSuite environment with advanced AI capabilities.
Key Takeaways:
- OCI credentials are essential for utilizing advanced AI features in SuiteScript.
- Ensure proper setup and verification of API credentials to avoid errors.
- Testing your configuration effectively helps maintain smooth operations.
Source: This article is based on Oracle's official NetSuite documentation.
Weekly Update History (1)
Updated Using Your Own OCI Configuration for SuiteScript Generative AI APIs to link to Configure OCI Credentials for AI for the most up-to-date configuration instructions, instead of duplicating these instructions.
View Oracle DocsWas this article helpful?
More in SuiteScript
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
- Binary File Support in N/https Module for SuiteScript
SuiteScript enhances capabilities with binary file support in the N/https module, allowing improved data handling in external communications.
- Attach and Detach Operations in NetSuite 2026.1
Attach and detach operations for record relationships in NetSuite enhance data management and connectivity.
- Create-Form Operation in NetSuite 2026.1 REST Web Services
Create-form operation in NetSuite 2026.1 APIs streamlines record creation and enhances efficiency.
