fetchPersonalizations(listID)
Retrieves the list of personalization instances for a list component and returns the list as a Promise.
Returns
The list of personalization instances as a Promise.
Parameters
Name | Type | Description | Required |
listID | string | A unique ID referencing a list component. | ✅ |
Usage example
In this example, the API retrieves the list of personalization instances for the list
component with ID 443533r555
.
const listId = "443533r555";
PCore.getPersonalizationUtils("443533r555").fetchPersonalizations();
The response structure is as shown below:
{
defaultPersonalization : "L_234322",
allPersonalizations : [
{
"name" : "Open bugs",
"personalizationId" : "L_345643",
"personalizationState" : "{ filter : 'pyStatusWork = Open'}"
},
{
"name" : "Resolved bugs",
"personalizationId" : "L_234322",
"personalizationState" : "{ filter : 'pyStatusWork STARTS_WITH Resolved'}"
}
]
}
Previous topic deletePersonalization(listID, personalizationID) Next topic updatePersonalization(listID, personalizationID, personalizedState)