# uip rpa get-default-activity-xaml

> Syntax and options for `uip rpa get-default-activity-xaml`, which returns the default XAML for an activity as it appears on the Studio designer.

`uip rpa get-default-activity-xaml` returns the XAML representation of an activity exactly as it would appear if dropped onto the designer surface for the first time — properties at default values, no expressions filled in. It is the inverse of activity discovery: once [`uip rpa find-activities`](./uip-rpa-find-activities.md) has produced a class name or a TypeCache ID, this verb gives you the boilerplate XAML to paste into a workflow.

Provide exactly one of `--activity-class-name` (for standard activities shipped in NuGet packages) or `--activity-type-id` (for dynamic Integration Service activities). The verb runs through Studio, so a Windows runner is required.

## Synopsis

```
uip rpa get-default-activity-xaml [--activity-class-name <string>] [--activity-type-id <string>] [--connection-id <string>]
```

## Options

| Flag | Description |
|---|---|
| `--activity-class-name <string>` | Fully qualified class name of a non-dynamic activity, e.g. `UiPath.Excel.Activities.ExcelApplicationScope`. Mutually exclusive with `--activity-type-id`. |
| `--activity-type-id <string>` | Unique TypeCache identifier for a dynamic (Integration Service) activity. Mutually exclusive with `--activity-class-name`. |
| `--connection-id <string>` | Integration Service connection ID for dynamic activities. Only used together with `--activity-type-id`; if omitted, a fallback connection is resolved automatically. |

For the complete option list on your installed tool version, run:

```bash
uip rpa get-default-activity-xaml --help
```

## Examples

```bash
# Default XAML for a standard activity
uip rpa get-default-activity-xaml \
  --activity-class-name UiPath.Excel.Activities.ExcelApplicationScope

# Default XAML for a dynamic Integration Service activity
uip rpa get-default-activity-xaml \
  --activity-type-id "salesforce.contact.create" \
  --connection-id 1f3b9c0e-7a25-4d8b-9b1f-9f6dd2c4f6d2
```

## Related

- [`uip rpa find-activities`](./uip-rpa-find-activities.md) — discover the class name or TypeCache ID to pass here.
- [`uip rpa inspect-package`](./uip-rpa-inspect-package.md) — inspect the public API of the package an activity belongs to.

## See also

- [RPA tool overview](./uip-rpa.md)
- [Global options](./global-options.md)
- [Exit codes](./exit-codes.md)
