function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDC AlexSFDC Alex 

trigger on Knowledge Article

Hi All,

I have created a custom field on Knowledge__kav object which needs to be populated with the category of the article once the category for that particular article is updated. Is there a way it can be done with the help of trigger?
Bret GreenfieldBret Greenfield
Here's the error at the end of challenge -
Challenge Not yet complete... here's what's wrong: run 3 (https://run3online.io)
Executing the 'AccountManager' method failed. Either the service isn't configured with the correct urlMapping, is not global, does not have the proper method name or does not return the requested account and all of its contacts.

Yes the Test coverage is 100%
Workbench result - 
{ "attributes" : { "type" : "Account", "url" : "/services/data/v40.0/sobjects/Account/001610000091HIRAA2" }, "Id" : "001610000091HIRAA2", "Name" : "University of Arizona", "Contacts" : { "totalSize" : 2, "done" : true, "records" : [ { "attributes" : { "type" : "Contact", "url" : "/services/data/v40.0/sobjects/Contact/00361000006nS5jAAE" }, "AccountId" : "001610000091HIRAA2", "Id" : "00361000006nS5jAAE", "Name" : "Jane Grey" }, { "attributes" : { "type" : "Contact", "url" : "/services/data/v40.0/sobjects/Contact/0036100001G0WtkAAF" }, "AccountId" : "001610000091HIRAA2", "Id" : "0036100001G0WtkAAF", "Name" : "ffff" } ] } }

 
SFDC AlexSFDC Alex
Hi Bret,

Is this answer relevant to my question?