+ Start a Discussion

log a call programatically

I want to automte the functionality of log a call button under activitites , pressing log acll button will lead to vf page where only one or two fields are required to be entered then i fire a trigger to update other fields on saving a record or a similar log a cal button whic wil just create a log a call (i.e task)
Jason Curtis NBSFDGJason Curtis NBSFDG
Hi, you can acomplish this with a flow. You can create a flow to ask for the necessary required fields and then use the flow to fill in the rest of the information.
Some info here:
General ideas: http://blogs.salesforce.com/company/2014/07/top-5-things-to-do-with-flow.html
Details: https://na10.salesforce.com/help/pdfs/en/salesforce_vpm_implementation_guide.pdf

You might also be able to acomplish what you want with a URL hack. You can create a button that will auto-fill the required fields and leave the other ones blank.
URL info: http://raydehler.com/cloud/clod/salesforce-url-hacking-to-prepopulate-fields-on-a-standard-page-layout.html

There are lots of other URL hack posts, just google and you might find one specific to your case.