forcedotcom / forcedotcom/ConnectApiHelper

ConnectApiHelperTest: "Context user does not have permission to create rich text in feed"

Open
#32 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Apex
Stars
105
Forks
81
PR merge metrics
No merged PRs in 30d

Description

I installed the software from [UnofficialSF.com](https://unofficialsf.com/post-rich-chatter-invocable-action/) and when running unit tests, got this error

```
Class.ConnectApi.ChatterFeeds.postFeedElement: line 1458, column 1
Class.ConnectApiHelperTest.testCreateInputFromBody: line 257, column 1
10:18:52.130 (194554713)|FATAL_ERROR|ConnectApi.ConnectApiException: Context user does not have permission to create rich text in feed
```

The _ContextUser_ is `UserInfo.getUserId()` - which is me, user with System Admin profile. The test appears to be posting a bolded element.

test class is V47

`Network.getNetworkId()` returns null for the test context

What permission to I need to setup for the running user to be able to execute this unit test?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.