Skip to main content
Joseph Tomarchio (CreateSpace) 님이 #Apex에 질문했습니다
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