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
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) } ) )
Hi viveku0001 couple of quick questions and few suggestions here to identify, debug and resolve this issue:
Q1. May i know what's the response code of your WEB-API?
Q2. What's the error message as per the log?
Debugging steps:
NOTE: Yes, you can use list of a!save() or a!httpResponse() over onSuccess and onError.
Is it possible for you to share your WEB-API expression and log error message, so that it will be easy to understand the root cause and resolve the same.