John_AlbertGine
2 years agoQrew Member
'Sign-in required' XML message when editing a record through email
Hi Guys,
I need your help and inputs given the following:
BACKGROUND:
Our QuickBase app is designed to send out mails to users when a user needs to 'Approve' a certain record in one of the tables.
The goal is to enable users to 'Approve' from email (whether the user is initially logged-in or not before clicking the 'Approve' button).
The [Approve for Email] field behaves as follows when used in 'Notification' mails:
We tried adding a 'usertoken' parameter into the [Approve for Email] field. With this;
Please let me know your inputs and if you guys need more details to look into this further. :)
Regards,
Albert
------------------------------
John Albert Ginete
------------------------------
I need your help and inputs given the following:
BACKGROUND:
Our QuickBase app is designed to send out mails to users when a user needs to 'Approve' a certain record in one of the tables.
The goal is to enable users to 'Approve' from email (whether the user is initially logged-in or not before clicking the 'Approve' button).
- To do this, we created a 'Rich Text' field named [Approve for Email] which is then used in a table's 'Notifications'
- Below is how the formula [Approve for Email] looks like:
"https://<domain>.quickbase.com/db/<DB_ID>" & "?a=API_EditRecord" &
"&apptoken=<APPTOKEN>&rid=" & [Record ID#] &
"&_fid_13=Yes" &
"&_fid_262=Approved" &
"&rdr=" & URLEncode("https://<domain>.quickbase.com/db/<DB_ID>?a=dbpage&pageID=35")
The [Approve for Email] field behaves as follows when used in 'Notification' mails:
- A user clicking on the [Approve for Email] is able to 'Approve' if he/she is logged-in to QuickBase before clicking on the mail from mail client
- A user clicking on the [Approve for Email] is NOT able to 'Approve' if he/she is NOT logged-in to QuickBase before clicking on the mail from mail client
- The following message is received when this happens
-
<qdbapi> <action>API_EditRecord</action> <errcode>22</errcode> <errtext>Sign-in required</errtext> <errdetail>The page you have requested can be viewed only by users who have signed in. Please sign in to proceed.</errdetail> </qdbapi>
We tried adding a 'usertoken' parameter into the [Approve for Email] field. With this;
- QuickBase then now redirects to the login page before actually doing the actions designed for the field to do
- The consequence is then that the 'Last modified by' now appears as the one who owns the 'usertoken' and not the one who logged-in. We need it to be the one who logged-in.
Please let me know your inputs and if you guys need more details to look into this further. :)
Regards,
Albert
------------------------------
John Albert Ginete
------------------------------