Scenario: User clicks a button that submits an Account number. An Apex method is called, connects to an outside institution via API. The returned data is a String. Looks like JSON when viewed in Edge browser dev tools:
ok. After several days of frustration and scouring your community, I finally was able to produce my Display with the Temp Data retrieved from an Apex call that allows a user to select one of the returned data options and save it to the Model. I found that your Debug logging in the Browser was a bit helpful.
I used the Adopt Rows function since I’m only displaying the data temporarily. Did not use Update Rows and a loop. After trying many options suggested in the Community and BTW, a lot of your links are broken. It would be nice to restore some of them as they may have helped me sooner.
To collect all of the returned data I used this line in a JS Snippet:
var results = arguments.$PreviousAction.result.output;
This populated my UI-Table which allows the user to select one of the options.
Couple of observations.
1). When using your APEX Call in the Action framework, the URL is different than if I use a JS Snippet and call the sforce.execute. Your Action framework uses the Rest POST call and the JS Snippet sforce.execute uses the GET w/ SOAP call. Why?
3). Could not find any documentation on the Global Merge variables: $CurrentAction and $PreviousAction. Please send a link.
Since you’ve been around some time, you have to have some really good code samples laying around you could post?
Thanks for the help and look forward to building more cool things using Skuid!!!
I was wondering if you got this working. The depth of solutions and documented how-to’s aren’t at the same level as the likes of Salesforce.
I’m certain we would have a solution within an hour if we were to work together on it. So for next know that I’m a Skuid Champion for hire if you want to hyperdrive a difficult requirement. I teach as I go if that appeals to you.