Skip to main content
I would like to write a simple trigger to flag a checkbox on the lead record if the lead has any related CRM Content.  But, what object would I build the trigger off of?
1 件の回答
  1. 2015年5月15日 2:41
    Hi Joseph,

    You can write trigger in ContentDocument .To write trigger in ContentDocument  you need to go to Console >New >ApexTrigger >select Contentdocument .

    And check the relationship with Lead and write  logic accordingly .

    for more detail about CMS objects please follow below links .

    https://www.salesforce.com/developer/docs/api/Content/sforce_api_erd_content.htm⌗sforce_api_erd_content

    Thanks

    Manoj