Forum Discussion
It actually is saying you aren't getting an error (thats why it says No error in the middle). This means it is not getting to your redirect and doesnt know where to go. However, your syntax to change multiple fields is simpler than you are making it. You do not need to call the edit record api multiple times. Rather:
var text Edit =
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&rid=" & $RID
& "&apptoken=myapptokenhere
& "&_fid_79=" & URLEncode("Cancelled")
& "&_fid_65=" & URLEncode("Closed");
A couple things to note.
- Good practice not to post your app token as it is an extra security level and best to keep that confidential.
- You can keep adding as many fields as you like to set.
- The URL Encoding is never a bad idea and won't hurt anything, but really is designed to be sure to take care of special characters (so when in doubt, use it), but in your case if you wanted, you could simplify to:
var text Edit =
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&rid=" & $RID
& "&apptoken=myapptokenhere
& "&_fid_79=Cancelled"
& "&_fid_65=Closed";
------------------------------
Mike Tamoush
------------------------------
- MichelleCraig2 years agoQrew Member
dang it...edited...i thought id done that, what happens when you multitask...thank you
------------------------------
Michelle Craig
------------------------------ - MichelleCraig2 years agoQrew Member
it worked, thank you, coding is hard, but I am learning - also any chance you can edit the "original message" in your response to delete that token? - cant believe I did that.
------------------------------
Michelle Craig
------------------------------