Using actionResult/returnObj

Hey all

I’m having an issue trying to get a response from actionResult.returnObj, and I’m wondering if I’m doing something wrong.

Here is my function:

I can see that this appropriately returns the results I’m after in the network trace. But I can’t seem to take the results and append them into some of my components.


For example, I get 4 rows of data returned, and I’m trying to update the date like this:
image

I’ve also tried it without actionResult and without returnObj but my response is always null or undefined.

Any ideas? :face_with_diagonal_mouth:

Read this post:

(Epicor Kinetic- rest-erp - #4 by hmwillett)

I had the exact same issue and got mine working following the instructions there.

1 Like

Did you manage to get this working using actionResult? Or did you have to use a different view?

I’m trying all sorts of combinations here and still getting nulls or undefined.

I’m starting to doubt whether or not I’m referencing correctly.


Here’s how I’m trying to get to it:
image

This is the response, and I can see that it has the data I’m after. I also followed the post and recreated my widget, still no luck I’m afraid.

No, I used a custom view, actionResult is too unreliable as it can get overwritten by another process running in the same sequence.

Once the data is in the view, the syntax should be just {actionResult.Address1} I believe.

1 Like

I finally managed to get it working! Your responses pushed me in the right direction here so thank you :slight_smile:

The main thing that was throwing me off here is ‘Dataset’
image

Although I didn’t know it, if you dare to click that ‘Dataset’ the widget has to be recreated or your results will always be undefined. It doesn’t matter if you add anything or not inside ‘Dataset’, the widget will be broken regardless.

I also found that in my row-update, I didn’t need to target [0], Kinetic does that on its own. Same result as you with actionResult too, I had to create a dataview that I called ‘VendorLookup’ and then store the results in there.

So, if it for anyone else:

Leave this blank

Parameter name = object you’re targeting
View Name = the one you created (don’t use actionResult, seems a bit iffy)
Parse from Response Path: I haven’t seen it be anything else other than ‘returnObj’, but it’s just the top level of your results.
image

My row update looks like this:

Hope this helps anyone who runs into the same problem I did.

Thanks for your help!

2 Likes

Nice work Lee! Thanks for sharing!

Ah yes, low-code\no-code that’s harder to use than writing actual code - even for a non-developer. :face_vomiting:

2 Likes