Forum Discussion
SarahClark
7 years agoQrew Cadet
Okay, here's a new challenge. :)
Now I want the button to "Mark Complete and Create Activity." Complete is a checkbox in the Tasks table, fid 9.
Here is where my formula stands now. What do I add to have it mark the task as complete?
URLRoot() & "db/" & [_DBID_ACTIVITY_SUMMARY] & "?a=API_GenAddRecordForm&_fid_20=" & URLEncode ([Related Case #])&"&_fid_15=" & URLEncode ([Task])
Now I want the button to "Mark Complete and Create Activity." Complete is a checkbox in the Tasks table, fid 9.
Here is where my formula stands now. What do I add to have it mark the task as complete?
URLRoot() & "db/" & [_DBID_ACTIVITY_SUMMARY] & "?a=API_GenAddRecordForm&_fid_20=" & URLEncode ([Related Case #])&"&_fid_15=" & URLEncode ([Task])
- Laura_Thacker7 years agoQrew CommanderMy question here is; can you leverage Form Rules to mark the Task as complete before creating the Activity; or is it only because you are creating the Activity that your Task is being marked as complete?
You can update the button you have built to edit the Task first, but just wanted to be sure you are needing this modification when another solution is not viable.
I'll post the API_EditRecord updated formula in a few minutes.... - Laura_Thacker7 years agoQrew CommanderURLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=xxxxxxxx&rid=" & [Record ID#]
& "&_fid_9=1"
& "&rdr=" & URLEncode(
URLRoot() & "db/" & [_DBID_ACTIVITY_SUMMARY] & "?a=API_GenAddRecordForm&_fid_20=" & URLEncode ([Related Case #])
& "&_fid_15=" & URLEncode ([Task])
) - SarahClark7 years agoQrew CadetThank you so much!
Form rules won't work because these buttons will be pressed from a report rather than a form. - Laura_Thacker7 years agoQrew CommanderWell that makes complete sense.