Tailor ThingWorx Navigate Tasks > Blacklist Attributes
Blacklist Attributes
The Windchill ODATA response returns a large number of internal attributes. By default, My Tasks removes the internal attributes that are not required by adding them to a blacklist. However, based on your business requirement, you can edit this blacklist to show some attributes in the tailoring page. You can also use this list to remove the attributes that are not required and avoid cluttering the tailoring page. For each component type, all attributes in the blacklist are stored in the PTC.ComponentBlacklist data table.
View Blacklisted Attributes
To fetch the complete list of blacklisted attributes, perform the following steps:
1. In ThingWorx Composer, search for the PTC.ComponentBlacklist data table, and then open it. The General Information page opens.
2. Click Services.
3. For GetDataTableEntries click Execute service. The Execute Service: GetDataTableEntries window opens.
4. Under Inputs, for the maxItems field, update the maximum number of items, if required.
5. Click Execute.
Add or Remove Attributes
To add attributes to the blacklist or remove attributes from the blacklist, perform the following steps:
1. In ThingWorx Composer, search for the PTC.ComponentBlacklist data table, and then open it. The General Information page opens.
2. Click Services.
3. For AddOrUpdateDataTableEntry click Execute service. The Execute Service: AddOrUpdateDataTableEntry window opens.
4. Under Inputs, for the values field, enter the modified list.
* 
Modifications to the blacklist should adhere to the JSON format. If the list is not in the required format, modify the list using a JSON editor and then paste it in the values field. You can also copy the values obtained from the GetDataTableEntries service you executed earlier.
5. Click Execute.
Once the modification is done, navigate to the tailoring page. Attributes added to the blacklist will no longer appear in the tailoring page. If you unblacklisted an attribute, it will now appear in the Available attributes section in the tailoring page.
* 
To blacklist an attribute that has already been tailored (present in the Selected attributes section of the tailoring page) remove it from the Selected attributes section, save the tailoring page, and then update the blacklist. If not updated using these steps, this attribute will not appear in the tailoring page, but will still be seen in the respective mashup.
Sample JSON of Blacklisted Attributes for PTC.ChangeMgmt.ChangeRequest
The following attributes in the JSON of the PTC.ChangeMgmt.AffectsLinkItem type have been blacklisted:
LastModified
CreatedOn
{
"PTC.ChangeMgmt.AffectsLinkItem": {
"blacklistedValues": {
"list": [
"LastModified",
"CreatedOn"

]
}
},
"PTC.ChangeMgmt.ChangeRequest": {
"blacklistedValues": {
"list": [
"ProcessObjects",
"Organization"
]
}
}
}
Was this helpful?