Forum Discussion
_anomDiebolt_
7 years agoQrew Elite
>If there is a way to do that, I am golden.
Lost in Space Episode 44: The Golden Man
Golden Man Requests Help From Jupiter 2 To Battle Alien Frog
https://midnitereviews.com/2015/07/lost-in-space-episode-44-the-golden-man/
Here is a pastie that defines a function youSentEmail() with the following signature
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=683
Notes:
(1) The script first grabs the page ?a=GenEmailRecord and extracts the PageToken form the page. The PageToken is needed to successfully submit the page ?a=DoValidateEmailRecord which does the actual email submission. PageTokens are some type of security nonce which are used by QuickBase to prevent CSRF (Cross-Site Request Forgery).
(2) The function youSentEmail can be bound to a button click by any of the standard methods. Likewise the parameters toList, subject, msg can be hardcoded or passed from field values on the record.
Lost in Space Episode 44: The Golden Man
Golden Man Requests Help From Jupiter 2 To Battle Alien Frog
https://midnitereviews.com/2015/07/lost-in-space-episode-44-the-golden-man/
Here is a pastie that defines a function youSentEmail() with the following signature
youSentEmail(dbidTable, rid, dfid, toList, subject, msg);Supply the appropriate parameters and a promise will be returned which when it resolves you can do further processing:
youSentEmail(dbidTable, rid, dfid, toList, subject, msg)Pastie Database
.then(function() {
console.log("You Sent Email!");
});
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=683
Notes:
(1) The script first grabs the page ?a=GenEmailRecord and extracts the PageToken form the page. The PageToken is needed to successfully submit the page ?a=DoValidateEmailRecord which does the actual email submission. PageTokens are some type of security nonce which are used by QuickBase to prevent CSRF (Cross-Site Request Forgery).
(2) The function youSentEmail can be bound to a button click by any of the standard methods. Likewise the parameters toList, subject, msg can be hardcoded or passed from field values on the record.
- _anomDiebolt_7 years agoQrew Elite(3) The received email looks like this: