Redirect to URL Action with Aggregate Variable Doesn't Work?

  • 1
  • Problem
  • Updated 5 months ago
  • Solved
I have a page with a model that holds a user's list of courses they're registering for, each with a price. I then have a model that uses the same data, except in the aggregate, in order to get the sum of all courses. I'm then trying to redirect to a PayPal URL and supply that total to the URL string.

I have tried both:
http://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=XXXXX&lc=US&item_name=Test&amount={{{sumCourseOfferingrMemberP}}}
and:
http://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=XXXXX&lc=US&item_name=Test&amount={{{$Model.RequestTotals.data.0.sumCourseOfferingrMemberP}}}
If I use:
http://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=XXXXX&lc=US&item_name=Test&amount=123
It works fine. If I include the same variable in the button label, it works fine. Are Redirect to URL actions unable to read aggregate fields?

My next step is to write a snippet that copies that value to a real field and read from there, but I'm hoping to not have to go that route.
Photo of Seth Leonard

Seth Leonard

  • 662 Points 500 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Official Response
Hello Skuid Community ~

This has been addressed in the new Millau 11.1.3 and Brooklyn 10.0.17 release which is now available on the Skuid Releases page.

As a reminder, Salesforce does NOT allow reverting back to prior versions of managed packages. Skuid always recommends installing new versions in a non-business critical sandbox environment to test all mission critical functionality before installing into a production environment. We also recommend that you update out of date themes when you upgrade.

Please be reminded to read this version’s special release notes here.
(Edited)