ディスカッション
NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
SuiteScript RESTletを使用した認証の処理
適用
製品: NetSuite 2022.2
シナリオ
RESTletを使用した認証の処理
解決策
NetSuiteではRESTletのセッションおよび認証を処理する方法は2つあります。
- NLAuthをヘッダーで使用
例:
Authorization: NLAuth nlauth_account=123456, nlauth_email=jsmith@ABC.com, nlauth_signature=xxxxxxxx, nlauth_role=41
サンプルコード: - ヘッダーに使用のできるCookieにJSESSIONIDを設定
例:
Cookie::JSESSIONID=cdn5TcThp3WRv5MLn1b7vL3mvQQCQn4L16pQ7vJmnGQQSJbqDL7nlJKJhbk1zvCvS4LK24jLwJr1jVpvwdnjgPwWbpbLHwpvMWBkLvRSQ0LhmTzQCYCGQyP3DjvqD6FT!-2028380063
注:このオプションは通常、複数のセッションを送信するために使用されます。これを使用するには、少なくとも1つのNLAuth認証を実行する必要があります。
サンプルコード:
関連したSuiteAnswers
- Sample Java code on sending RESTlet requests using JSESSIONID for Authentication
- Sample Java Sending Multiple Request using NLAuth
- Sending Multiple Request in Python using NLAuth
タグ付けされた:
0