Integration is giving error while trying to fetch its result

Certified Associate Developer

Hello All,

 

I have an application where I'm trying to get the value from integration call. As per the documentation its being mentioned that onSuccess{

fv!result

} will return the result which we can save into existing ri or local variable. But in my case its giving error that fv!result is not found. Can somebody tell me the reason behind this issue? Any suggestion here would be appreciated. Thanks in advance

  Discussion posts and replies are publicly visible

Parents
  • Hi viveku0001, if you can give more details about your issue like the system message and your snippet code we might be able to find something. I assume that you doing something like the sample code below from Appian Docs:

    a!buttonWidget(
      label: "Place Your Order",
    
      /* Call the integration to update the external system when the button is pressed */
      saveInto: rule!AuthorizeCreditCardPayment(
        cardNumber: local!cardNumber,
        expirationDate: local!expirationDate,
        ccv: local!ccv,
        amount: local!amount,
        onSuccess: {
          /* Handle the successful response */ 
          a!save(local!result, fv!result)
        },
        onError: {
          /* Handle the error response */ 
          a!save(local!paymentErrorMessage, fv!error.message)
        }
      )
    )

Reply
  • Hi viveku0001, if you can give more details about your issue like the system message and your snippet code we might be able to find something. I assume that you doing something like the sample code below from Appian Docs:

    a!buttonWidget(
      label: "Place Your Order",
    
      /* Call the integration to update the external system when the button is pressed */
      saveInto: rule!AuthorizeCreditCardPayment(
        cardNumber: local!cardNumber,
        expirationDate: local!expirationDate,
        ccv: local!ccv,
        amount: local!amount,
        onSuccess: {
          /* Handle the successful response */ 
          a!save(local!result, fv!result)
        },
        onError: {
          /* Handle the error response */ 
          a!save(local!paymentErrorMessage, fv!error.message)
        }
      )
    )

Children
No Data