I have an interface that calls 2 different intergrations. There is data that return for both integrations, but it randomly returns null after calling it multiple times.
I have inserted where I am calling the integrations.
a!localVariables( local!historyData: a!refreshVariable( value: index( rule!GET_incomingRequestHistoryByID(requestId: ri!requestId).result, "body", {} ), refreshOnReferencedVarChange: true() ), local!requestDetails: a!refreshVariable( value: index( rule!GET_allIncomingRequestsByID(refundRequestId: ri!requestId).result, "body", {} ), refreshOnReferencedVarChange: true() ),
This is what my error looks like when 1 integration returns as null
This is what my local variable looks like when both integrations return data:
Discussion posts and replies are publicly visible
Hi cindyl5142 ,Always use indexing by index() function, (.) notation will not handle the null values and moreover check whether you are filtering the correct ri!requestId, pass it manually to verify that the data is correct.
index(rule!GET_allIncomingRequestsByID(refundRequestId: ri!requestId),"result",{})