---
title: Using the GetAllSchemaForObject Web Method
slug: neurons-for-itsm/admin-user-help/enu/latest/using-the-getallschemaforobject-web-method
createdAt: 2026-07-14T19:16:26.925Z
---

Retrieves an XML version of the metadata behind an object, including all fields such as RecID.

## Request Syntax

string GetAllSchemaForObject(string sessionKey, string tenantId, string objectName)

## Parameters

- **sessionKey**: The session key from the **Connect** web method.
- **tenantId**: The tenant for which the session key is authenticated.
- **objectName**: Name of the business object, in object reference notation (such as "incident#").

## Return Value

A string value representing the schema for the specified business object, which is represented in XML.

## Example

string schemaDoc = frSvc.GetSchemaForObject(authSessionKey, tenantId, "Incident#");
