Search for existing answers to your product and support questions.
Familiarize yourself with our support site and learn best practices in working with our team.
Manage Service Requests, View and update service requests submitted by you and others in your organization.
Submit a new issue to our technical support team.
Oracle B2C Service insights from our Technical Support team subject matter experts
Browse resources to assist you in launching your implementation and ensure a successful go-live.
Access your OCI account.
Find product documentation for supported versions of B2C and documentation libraries for related service solutions.
You will have the tools to improve your customers' experience when you learn about all the things our products can do.
Find links for API documentation, Custom Processes, Customer Portal, and Agent Browser UI Extensibility Framework.
Explore how accelerators are designed to demonstrate how an integration scenario could be built using the public integration and extension capabilities of the Oracle B2C Service.
Prepare for a successful transition by reviewing upcoming release changes and enhancements.
Explore webinars, events, and feature kits to learn about B2C Service features, functionality, and best practices from the technical experts.
Oracle MyLearn offers a portfolio of free and paid subscription-based learning resources to help you gain valuable skills, accelerate cloud adoption, increase productivity, and transform your business.
Empower your team with the skills to implement, configure, manage, and use your applications with Customer Experience Cloud Training.
Our goal is to facilitate a friendly, supportive environment where members can easily collaborate with each other on solutions and best practices.
Ask and answer questions specific to B2C.
This is an exciting resource intended to help with your Oracle Service Cloud Analytics.
Share product improvement ideas and enhancement requests with Oracle Development, while collaborating with other Oracle customers and partners.
Update your phone number, email notification preferences, and severity 1 and severity 2 contact preferences.
View the contact managers within your organization.
Find contact information of the Technical Account Manager (TAM) and Client Success Manager (CSM) for your organization.
環境:
Analyticsのカスタムスクリプト
解決策:
Oracle B2C Serviceでカスタム・レポートを作成するときに、ユーザーがカスタム・レポートをカスタマイズおよび構成できる多数の機能が備わっています。ほとんどのユーザーはOracle B2C Serviceアプリケーション自体の機能を使用してレポートを定義および作成できます。
カスタム・スクリプト機能では、レポートが生成されるときに実行される特定のPHPスクリプトを定義できます。これにより、使用できる標準の機能を大幅に超えてレポート内のデータを活用、操作および書式設定できます。たとえば、カスタム・スクリプトを使用すれば、データの行をテーブルに変換したり、不要なデータを削除したり、別のページへのリンクを作成したりできます。アナリティクスのカスタムスクリプト機能は意図されていないため、レポートスケジュールで(カスタムCRON構成を使用する代わりに)PHPスクリプトを実行する場合や、パブリックAPIリクエストを行う場合など、他の目的には使用しないでください。
カスタム・スクリプトは、PHPで作成する必要があります。そのため、PHPスクリプト言語やプログラミングの概念に精通していなければ、カスタム・スクリプトの作成または実装は推奨できません。PHPに関する公式ドキュメントおよび情報については、http://www.php.net/を参照してください。
注意:カスタム・スクリプトは、Oracle B2C Serviceコンソールからレポートを使用するときにのみ実行されます。同じレポートがカスタマ・ポータル・ページから使用されているときは、カスタム・スクリプトが実行されません。
レポートにカスタム・スクリプトを追加するには:
1.編集するレポートを開きます。 2.レポート・デザイン・センターの一番上にある「レベル」ドロップダウン・メニューから、カスタム・スクリプトを追加する出力レベルを選択します。 3.「レベル」タブをクリックします。 4.「カスタム・スクリプト」ボタンをクリックして、カスタム・スクリプト・エディタを開きます。すでに出力レベルにカスタム・スクリプトが存在する場合は、編集するカスタム・スクリプトがエディタに表示されます。
5.「初期化」タブから、レポートが処理される前に実行するスクリプトを入力します。このスクリプトは、レポートの処理が開始されるときに一度実行されます。 6.「ヘッダー」タブをクリックします。 7.開始プロセス中に実行されるスクリプトを入力します。このスクリプトは、列見出しを渡すときに一度呼び出されます。$headersパラメータは、レポート用の列ヘッダーを含む配列です。例: Array ( [0] => Account ID [1] => Full Name ) この配列は、列ヘッダーを変更、追加、または削除することで操作できます。生成される配列は、列ヘッダーとしてレポートに表示されます。 8.「処理」タブをクリックします。 9.レポートが生成されているときに実行されるスクリプトを入力します。このスクリプトは、行データを渡す各行で呼び出されます。$rowsパラメータは、行だけでなくデータの「テーブル」を返すことができるネストされた配列です。初期段階では、$rowsパラメータにテーブル($rows[0][$i])の1行目のデータのみが含まれています。各データ・セルには、データ・セルの値を保持するval変数が含まれています。また、データ・セルのリンクを含むURL変数が含まれる場合もあります。 10.「完了」タブをクリックします。 11.終了プロセス中に実行されるスクリプトを入力します。このスクリプトは、行が処理された後に呼び出されます。完了スクリプトでは、処理スクリプトの各行の後にレポートに追加される$exit_obj変数が返されます。 12.「OK」ボタンをクリックして、カスタム・スクリプトを出力レベルに適用します。 13.カスタム・スクリプトを削除するには、「レベル」タブをクリックし、「編集」ボタンをクリックし、次に「削除」をクリックします。削除の確認で「はい」をクリックします。 14.クイック・アクセス・ツールバーにある「保存」ボタン上の矢印をクリックして、保存オプションを選択します。
カスタム・スクリプト・コードの例については、標準レポート「訪問アクティビティ」(レポートID 46)を参照してください。カスタム・スクリプトを表示するには、レポート・エクスプローラからレポートを右クリックして、「定義の参照」を選択します。カスタム・スクリプト・コードは、レポート定義の一番下にあります。
カスタム・スクリプトの定義の詳細については、Oracle B2C ServiceのマニュアルおよびドキュメントOracle B2C Serviceプロダクトのドキュメントを参照してください。
カスタム・スクリプトのトラブルシューティングの際には、Oracle B2C Serviceのプロフェッショナル・サービス組織の関与が必要になります。カスタム・スクリプトのトラブルシューティングに関する料金については、セールス・アカウント・マネージャが調整します。