You need to sign in to do that
Don't have an account?
Anuj Joshi 42
test class for knowledge article version
Hi All,
In my class I have a condition in soql such that on knowledge article version publish status should be online. When I am inserting test data for knowledge article version object by giving publist status as online, it is throwing an error that field is not writeable. I am not able to cover the test class because of this. Kindly provide me solution for this.
Thanks,
Anuj
In my class I have a condition in soql such that on knowledge article version publish status should be online. When I am inserting test data for knowledge article version object by giving publist status as online, it is throwing an error that field is not writeable. I am not able to cover the test class because of this. Kindly provide me solution for this.
Thanks,
Anuj
This is my line in class.
And I am creating test data like this is test class.
Thanks,
Anuj
I am getting this exception.
System.NoAccessException: Insufficient Privileges: You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.
Still the same error
activate permission in test user "Knowledge User"(user.UserPermissionsKnowledgeUser = true)