SarahClark
6 years agoQrew Cadet
button to create a record that is not a child
I've got a parent table (Cases) with two different child tables (Activities and Tasks).
I figured out how to create a button in Tasks that creates a new Activity. (Go me!)
What I can't figure out is how to map fields (for example, to grab the parent Case from the Task and make it the parent Case on the Activity).
Here is the formula I have so far. I copied it from one of the automatic "Create Child" buttons that are created when you create the relationship, and then I changed the name of the table. I didn't know what else to change.
URLRoot() & "db/" & [_DBID_ACTIVITY_SUMMARY] & "?a=API_GenAddRecordForm&_fid_22=" & URLEncode ([Record ID#])& "&z=" & Rurl()
I figured out how to create a button in Tasks that creates a new Activity. (Go me!)
What I can't figure out is how to map fields (for example, to grab the parent Case from the Task and make it the parent Case on the Activity).
Here is the formula I have so far. I copied it from one of the automatic "Create Child" buttons that are created when you create the relationship, and then I changed the name of the table. I didn't know what else to change.
URLRoot() & "db/" & [_DBID_ACTIVITY_SUMMARY] & "?a=API_GenAddRecordForm&_fid_22=" & URLEncode ([Record ID#])& "&z=" & Rurl()