Create a Knowledge Base Article from Apex Dynamically without knowing article type API name
Here is the apex code to to achieve the same. Run in dev console then use in your test class or anywhere else you want:
Here is the apex code to to achieve the same. Run in dev console then use in your test class or anywhere else you want:
PROBLEM STATEMENT SOLUTION Below given solution is use to Apex script to query Knowledge and make change and then publish in mass. This peice of code further can be used anywhere in Anonymous Window (Developer Console –> Debug –> Open Execute Anonymous window) or Apex Class/Trigger. Query Published articles and make desired changes (skip if …