Excel.LinkedEntityId interface
The linked entity ID object represents a set of properties that describes a service and culture for locating this service defined value.
Remarks
Used by
- Excel.LinkedEntityCellValue: id
- Excel.LinkedEntityCellValueLoadedEventArgs: id
- Excel.LinkedEntityDataDomainCollection: loadLinkedEntityCellValue
- Excel.Workbook: getLinkedEntityCellValue
Examples
// Loads a linked entity cell value using a LinkedEntityId.
async function loadLinkedEntity(domainId: string, entityId: string) {
await Excel.run(async (context) => {
// Specify the linked entity ID to load.
const linkedEntityId: Excel.LinkedEntityId = {
entityId: entityId,
domainId: domainId,
serviceId: 268436224, // Service ID used by Excel to identify linked entity cell values associated with an add-in.
culture: "en-US",
};
// Load the linked entity cell value.
context.workbook.linkedEntityDataDomains.loadLinkedEntityCellValue(linkedEntityId);
await context.sync();
});
}
Properties
| culture | Represents which language culture was used to create this |
| domain |
Represents a domain specific to a service used to create the |
| entity |
Represents an identifier specific to a service used to create the |
| service |
Represents which service was used to create the |
Property Details
culture
Represents which language culture was used to create this CellValue.
culture: string;
Property Value
string
Remarks
domainId
Represents a domain specific to a service used to create the CellValue.
domainId?: string;
Property Value
string
Remarks
entityId
Represents an identifier specific to a service used to create the CellValue.
entityId: string;
Property Value
string
Remarks
serviceId
Represents which service was used to create the CellValue.
serviceId: number;
Property Value
number