Friday, 6 March 2015

Accessing Tasks from Community Portal with out ownership


We had a requirement to update task from community portal.But tasks are not visible to Community portal if he is not owner of that task.

So if we want to do some update on such type of task from Community Portal we have to update a field "IsVisibleInSelfService" on Task to true.

Task taskObj = new Task(id='00Tsdfadere324',IsVisibleInSelfService=true);
update taskObj;

We can update this from Workflow rule also. But in the field Update it will be with the name "Public".

The Field "IsVisibleInSelfService" Indicates whether a task associated with an object can be viewed in the Customer Portal (true) or not (false).

If your organization has enabled Communities, tasks marked IsVisibleInSelfService are visible to any external user in the community, as long as the user has access to the record the task was created on.
This field is available when Customer Portal or partner portal are enabled OR Communities is enabled and you have Customer Portal or partner portal licenses.


1 comment:

  1. Hi

    We tried using a workflow to update the field "isvisibleinselfservice" as true but its not working.

    The workflow doesnt update the field as Public. Can you please help figure out why


Create Dynamic Picklists for Your Custom Components (design:component)

Hi, We can expose a component property as a picklist when the component is configured in the Lightning App Builder. The picklist’s value...