Have researched and been working on this for a week with no avail. Really need any help in the right direction because I am so frustrated.
I have a visual workflow that runs perfectly while in Setup as a System Administrator.
However, when I insert the flow into a forcepage site and expose it to the public - The visual workflow gives me an unhandled fault on the Guest User License page account when a Record Create for a Task is initiated.
I believe it has to do with permissions for the guest account, but I have activated everything I could find for task and contact along with all of the read, create, edit permissions - but to no avail.
The error message is:
Encountered unhandled fault when running process JSDCL_Front_Desk_Sign_In/301A0000000PLo7 exception by user/organization: 00DA0000000CGkf/{4}
UPSERT --- UPSERT FAILED --- ERRORS : (CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY) entity type cannot be inserted: Task --- for SFDC record with ID : null,
caused by element : FlowRecordCreate.Create_Visitor_Record_Sign_In
caused by: UPSERT --- UPSERT FAILED --- ERRORS : (CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY) entity type cannot be inserted: Task --- for SFDC record with ID : null,
Please help! Thank you!
Attribution to: Jack
Possible Suggestion/Solution #1
If the Site Guest User cannot own a Task or Event, can it create them with a different Owner by default?
If this doesn't work (and obviously this is not an ideal answer since it involves Apex), theoretically it might be possible to write an Apex plugin, using a class Without Sharing, to create the Task. Then use the Apex plugin in your flow. I have not confirmed this, however, and clearly we're getting out of "clicks-not-code" mode with this.
Attribution to: markross__c
Possible Suggestion/Solution #2
Site Guest User cannot own Task
or Event
activities, neither can Customer Community User, Customer Community Login User or Partner Community User.
The only way for a non-Salesforce-licensed user to own a Task or Event is if they are a logged in Partner Community Login User.
This is a restriction on the permission model itself and not something that can be profile enabled.
Attribution to: bigassforce
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/33174