機械翻訳について

アプリケーション・コンポーザを使用して売掛管理から与信限度額をプルするために、顧客データ管理でカスタム・オブジェクト・フィールドをマップするにはどうすればよいですか。

このトピックを使用して、アプリケーション・コンポーザを使用して売掛管理から与信限度額を抽出する方法を学習します。

APIをコールしてカスタム・フィールドの与信限度額を取得するGroovyスクリプトを作成できます。 このフィールドを式フィールドとして定義する場合は、「計算式フィールド」がパフォーマンスに影響を与える可能性があるため、永続カスタム・フィールドでこの値をプログラムで設定する必要があります。

次に例を示します。

/** Account Credit Limit **/
try
{
   def accountNumber = getAttribute("LegacyAccountNumber_c");
   println("Account Number :"+accountNumber)
   if(accountNumber != null){
      def customerProfile =
      [
         AccountNumber:accountNumber
      ]
   def custProfileValue = adf.webServices.FA_OCF_Account_Profile_Service.getActiveCustomerProfile(customerProfile)
      if(custProfileValue != null){
      println("custProfileValue:"+custProfileValue)
      println("Account creditLimit:"+custProfileValue.Value.CreditLimit)
           return custProfileValue.Value.CreditLimit.first().first()
      }
   }
}
catch (Exception e)
{
 println "Message: " + e.getMessage();
 println "Localized Message: " + e.getLocalizedMessage();