Using SalesForce's Web Service to create and set the type of a Task

前端 未结 2 560
忘了有多久
忘了有多久 2021-01-25 05:07

I am successfully creating a Task using the SalesForce API SOAP API through Java.

However, my problem is that I can\'t seem to set the Type of it. They all default to \

2条回答
  •  执念已碎
    2021-01-25 05:27

    The API field name that contains 'Call' (and defaults to it) is a ComboBox, not a PickList, and it's called Subject.

    Task.Subject = 'Email';
    

    If you want to set the default, do it from within the Salesforce app:

    Setup->Customize->Activities->Task Fields->Subject
    

提交回复
热议问题