You need to sign in to do that
Don't have an account?

Create Knowledge Article from Attachment using Apex
Hi All,
We have a requirment where we have an attachment and on certain condition we will have to create a Knowledge Article with the attachment.
Any leads would be quite helpful.
Thanks in advance!!
We have a requirment where we have an attachment and on certain condition we will have to create a Knowledge Article with the attachment.
Any leads would be quite helpful.
Thanks in advance!!
- Write a query on the Attchment object to fetch your desired ones.
- Insert into your knowledge article object (Note that this object is auto generated when you created a new article type and the object name ends with __kav) ... Get the exact API name by going into Setup -> Knowledge -> Knowledge Article Types
Insert into the __kav object and you have an articleThanks for the response but i am not sure how can we create the attachment for the article from the attachment
i.e: The attachment should be attached to the Knowledge Article but the attachments for knowledge articles are not stored as attachments in the backend.
I tried so somehow i am not getting the way.
Are you having any sample code to acheive so that i refer it.
Thanks a lot !!!!!