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
lakshman.mattilakshman.matti 

Update records with when we have only read permission on the object

Hi Everyone,

i got stuck with one requirement. below is the scenario.Please help in resolving the issue.
I have a custom object called xyz with status picklist field. i have created a profile with customer community licence. this profile is currently having Read permission on object. i have created custom Button(Lightning Quick Action which calls flow to update record) on record. when i login as cummunity user, i need to click on that button to change status picklist. Currently i'm getting error while updating status because it has READ permission.
Below is the error message:
This error occurred: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: entity type cannot be updated: This error occurred: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: entity type cannot be updated:
is there any work around for this Problem without changing permissions in the Profile level.
I hope the question is clear to understand


Thanks,
Lakshman
Manoj ThangavelManoj Thangavel
The flow works under user mode. So it will consider the CRUD permission.

The other option, you can call the apex code form Flow, which can update the field.

Thanks,
Manoj T