Field not being copied in API call with Save

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • In Progress
I have a button that is as follows:

URLRoot() & "db/" & [_DBID_ACTIVITY_LOG_DAVE] & "?a=API_GenAddRecordForm&_fid_11=" & "Tasked to Team Member:        " & URLEncode ([Description]) 
& "&_fid_50=" &URLEncode([Company Name (ref)]) 
& "&_fid_47=" &URLEncode([Worker or Project Name (ref)]) 
& "&_fid_223=" &URLEncode([Project Name (ref)]) 
& "&_fid_97=" &URLEncode([User #]) 
& "&_fid_31=" &URLEncode([Now]) 
& "&_fid_22=" & URLEncode("Case Analysis & Strategy") 
& "&_fid_12=" & URLEncode([Time Logged For Action]) 

It works perfectly and copies everything over and fills alright the right fields in. It is only available while viewing a record. Although I have another iteration which is 

"<a  class='Vibrant Snowy' href='javascript:LinkAway(\""&[Add Activity]&"\");'>Add Activity</a>"
It is available while editing a record. Except its does not seem to want to copy over 

& "&_fid_12=" & URLEncode([Time Logged For Action]) 
I do have "Save parent record automatically when a child record is created" checked off.
Photo of Jordan

Jordan

  • 1,574 Points 1k badge 2x thumb

Posted 1 year ago

  • 0
  • 1
Photo of Matthew Neil

Matthew Neil

  • 31,438 Points 20k badge 2x thumb
try adding the standard:
& "&z=" & Rurl()
at the end of the linkaway version and see if that helps at all.

My guess is it has to do with the quotes and you might need an extra layer of commented out quotes.
Photo of Jordan

Jordan

  • 1,574 Points 1k badge 2x thumb
I added & "&z=" & Rurl() and still no luck