For "reject", only the values are added to three fields, and no redirect is needed.
Here is what I have so far:
var text approve = URLRoot() & "db/" & [_DBID_] & "?a=API_EditRecord&apptoken=XXXXXX&rid=" & URLEncode ([Record ID#])
& "&_fid_xx=" & URLEncode("Approved")
& "&_fid_xx=" & URLEncode(Now())
& "&_fid_xx=" & URLEncode(User())
& "&rdr=" & URLEncode(URLRoot() & "db/xxxxx?a= API_EditRecord&apptoken=xxxxxxrid=" & URLEncode ([Related Store Item])
& "&_fid_xx=" & URLEncode([# of Features Requested])
& "&rdr=" & URLEncode(URLRoot() & "db/xxxxx?a=dr&rid=" & [Record ID#]);
var text reject = URLRoot() & "db/" & [_DBID_] & "?a=API_EditRecord&apptoken=XXXXXX&rid=" & URLEncode ([Record ID#])
& "&_fid_xx=" & URLEncode("Rejected")
& "&_fid_xx=" & URLEncode(Now())
& "&_fid_xx=" & URLEncode(User())
& "&z=" & Rurl();Not sure where this is going wrong with the formatting or syntax errors.