开发者

Custom Task button "Log a Phone Call" in salesforce.com

开发者 https://www.devze.com 2023-02-13 04:05 出处:网络
I\'d like to create a custom task button that would create a new activity or task and default subject and a custom field \"Activity.Type__c\" to \"Phone Call\" when clicked开发者_运维知识库.

I'd like to create a custom task button that would create a new activity or task and default subject and a custom field "Activity.Type__c" to "Phone Call" when clicked开发者_运维知识库.

I got as far as defining the button, but need some pointers on what the content source and the actual code should be.

Sample code and/or links to tutorials are greatly appreciated!


You need to set the URL for the button to have GET parameters with Ids matching the fields on the page, and then their values. So, look at the id of the custom field in the HTML, it'll be an 18 character string (e.g. 00ND0000003IyoE). Then set that in the URL with ?00ND0000003IyoE=Phone%20Call. Note: I'm using %20 for the space.

0

精彩评论

暂无评论...
验证码 换一张
取 消