+ Start a Discussion
piyush parmarpiyush parmar 

chatter notification on attachment upload

Hi, All


I have create trigger for  chatter notification on attachment  when file is upload

but getting error like

Error: Apex trigger ChatterNotification caused an unexpected exception, contact your administrator: ChatterNotification: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, Feed Item Type: bad value for restricted picklist field: file:


Plaese suggest me any idea !! or otherr way to chatter notification when attach file !!

Please Help me ASAP

Thank you,

Piyush Parmar


"INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, Feed Item Type: bad value for restricted picklist field"


The above error message show that you are trying to update some wrong value or misspelling the value or null in Feed Item Type picklist.  The value is not actually present at schema level. Can you please post you trigger code here?

piyush parmarpiyush parmar

thank u for reply.. i have soled my prblem  .




need help wit the trigger fr attchment updates ..

piyush parmarpiyush parmar

Can u expaln more detain !!!