Hello,
I could really use some help with a script. I’ve just begun to fiddle with sending data to Documint to generate different PDF documents with styling.
Maybe this isn’t possible, but here is the scenario.
We have donor, donations and funds tables.
Donors (contacts) have many donations (transactions)
Donations have one fund (category)
I would like a button on the Donor page to generate a “statement” of donation activity and summarized totals for any date range the user picks.
Here is what I have so far:
Field called “Report Dates” that the button will prompt them to complete in Step 2 for use in the script.
Total fields in Donor database that calculate different totals based on “Report Dates” selected. (Would prefer to do this on the fly somehow but that seems to add even more complexity to my ask)
Generic script for a POST to Documint (Tested and working on simpler template)
Donor and filtered donations:
If possible, how do I take the start and end dates they picked, grab only IDs of donations related to the selected contact that also fall within the selected date range, and then put that inside the POST body?
This is a very specific case but could be really helpful going forward with other reports that need to look at multiple databases and do some sort of filtering/aggregating.
Thank you!