class MicrofeedData
A SharePoint entity class representing microfeed data, which is part of the SharePoint Microfeed API for managing activity feeds and social interactions.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/microfeed/data.py
4 - 7
simple
Purpose
MicrofeedData is an entity class that represents microfeed data objects in SharePoint. It inherits from the Entity base class and provides a specific entity type identifier for SharePoint's Microfeed service. This class is used to interact with SharePoint's social feed features, allowing applications to retrieve, manipulate, and manage microfeed data such as posts, updates, and activity streams within SharePoint environments.
Source Code
class MicrofeedData(Entity):
@property
def entity_type_name(self):
return "SP.Microfeed.MicrofeedData"
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
Entity | - |
Parameter Details
__init__: The constructor parameters are inherited from the Entity base class. Typically includes context (ClientContext) for SharePoint communication and resource_path for the entity's location in the SharePoint object model.
Return Value
Instantiation returns a MicrofeedData object that represents a SharePoint microfeed entity. The entity_type_name property returns the string 'SP.Microfeed.MicrofeedData', which is used internally by the SharePoint client library for type identification and serialization.
Class Interface
Methods
@property entity_type_name(self) -> str
property
Purpose: Returns the SharePoint entity type identifier for MicrofeedData objects
Returns: String 'SP.Microfeed.MicrofeedData' representing the SharePoint entity type name
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
entity_type_name |
str | Read-only property that returns the SharePoint entity type identifier 'SP.Microfeed.MicrofeedData' | instance |
Dependencies
office365-runtimeoffice365.sharepoint
Required Imports
from office365.sharepoint.microfeed.microfeed_data import MicrofeedData
from office365.sharepoint.entity import Entity
Usage Example
from office365.sharepoint.client_context import ClientContext
from office365.sharepoint.microfeed.microfeed_data import MicrofeedData
# Setup SharePoint context
site_url = 'https://yourtenant.sharepoint.com/sites/yoursite'
ctx = ClientContext(site_url).with_credentials(user_credentials)
# Instantiate MicrofeedData (typically retrieved from SharePoint, not directly instantiated)
microfeed = MicrofeedData(ctx)
# Access entity type name
entity_type = microfeed.entity_type_name # Returns 'SP.Microfeed.MicrofeedData'
# Typically used in queries or as part of larger SharePoint operations
# microfeed_items = ctx.web.microfeed.get().execute_query()
Best Practices
- This class is typically not instantiated directly by users; instead, it's returned by SharePoint API queries related to microfeed operations
- Always ensure a valid ClientContext is established before working with SharePoint entities
- The entity_type_name property is primarily used internally by the office365 library for serialization and type identification
- This class follows the Entity pattern from the office365-runtime library, inheriting standard entity behaviors like property loading and updates
- Use this class as part of the broader SharePoint client object model rather than as a standalone component
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class MicrofeedManager 86.6% similar
-
class MicrofeedAttachmentStore 80.7% similar
-
class MicrofeedPostDefinition 76.6% similar
-
class MicrofeedUserPosts 73.5% similar
-
class SocialFeed 72.4% similar