> For the complete documentation index, see [llms.txt](https://docs.powerdevbox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powerdevbox.com/dev-tools/chrome-extensions/share.md).

# Share

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-25bc72a6c85b5be08c1e36c1773ffe8621f95e8d%2Fshare%20v2%20512.png?alt=media" alt="" width="256"><figcaption></figcaption></figure>

If the Power DevBox Share icon is red then it has not connected to the Power Platform.

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-9f25057c0a562932fc40433c0b0b380711a2bd63%2Fimage%20(120).png?alt=media" alt=""><figcaption></figcaption></figure>

Refresh the page and the icon should lose the red background.

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-af8c5e0d20902fc7fd514f6353cb17eb9362f3b0%2Fimage%20(121).png?alt=media" alt=""><figcaption></figcaption></figure>

Clicking on the icon will open the menu.

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-ae5bcee61571c4425009431edbacf040620ec0ce%2Fimage.png?alt=media" alt="" width="360"><figcaption></figcaption></figure>

### Inputs

There are 6 inputs for Power DevBox Share

* Components
* Action
* Share Permissions
* Share Type
* Share To
* Component

#### Components

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-ea723afdb08436983485c91bf6a4cda271347761%2Fimage%20(1).png?alt=media" alt="" width="335"><figcaption></figcaption></figure>

Currently only Environment Variables, Connection References, Custom Connectors, Flows, and AI models are supported.

Solution Contents will share all of the above that are in the selected solution

#### Action

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-6a06c22deb28f9ad143dca4d89f2c2136263b76c%2Fimage%20(2).png?alt=media" alt="" width="336"><figcaption></figcaption></figure>

You can Share the component/solution, Change Owner, or Stop Sharing.

#### Share Permissions

Sharing Permissions is only for sharing, not for change owner or Stop Sharing. There are the following permissions, that can be used individually or stacked with commas

* ReadAccess
* WriteAccess
* AppendAccess
* AppendToAccess
* CreateAccess
* DeleteAccess
* ShareAccess
* AssignAccess

#### Share Type

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-79a1cb7bb19e2e3d9065ad21735d20ce89c6e341%2Fimage%20(6).png?alt=media" alt=""><figcaption></figcaption></figure>

There are 2 share types, user or team. Both required to be added to the relevant table before (systemusers/teams).

#### Share To

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-0ab20d6af428a90bd5164a92ae3671c62f80104a%2Fimage%20(5).png?alt=media" alt=""><figcaption></figcaption></figure>

To share with a user use their upn (user principle name) email address. For teams the team name from the teams table is required.

#### Component Name

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-3255f08194ebfd186072e53077f36d2df7a35091%2Fimage%20(7).png?alt=media" alt=""><figcaption></figcaption></figure>

This is the component or solution you wish to share/change owner/stop sharing. It is not the display name but the unique name, this can be found here:

**Solution** - e.g. CustomForm

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-0521a3e96bf484f9b1306cb2ae9a239e181b422b%2Fimage%20(129).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-7fcaff716400d6b3ca2d1acbd2c859b98a2d81f8%2Fimage%20(134).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

**Connection Reference** - e.g. wd\_OutlookcustomForm

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-0052b1789441652327b05d4ee157f54402649916%2Fimage%20(130).png?alt=media" alt="" width="380"><figcaption></figcaption></figure>

**Environment Variable** - e.g. wd\_customFormsite

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-29514e6f00ece7b8d4697d88f31425086669c473%2Fimage%20(133).png?alt=media" alt="" width="363"><figcaption></figcaption></figure>

**Custom Connector** - e.g. wd\_5Fautoreview

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-2223ccd7618250b40b32914d74a62c4cde2285a3%2Fimage%20(136).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

**Flow** - e.g. Send Form

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-d113e1a11ecdd1b05fa7edcb46088194bb55be77%2Fimage%20(137).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

### Outputs

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-6a7ae414dba88d62eab008ab8327349e18729f56%2Fimage%20(8).png?alt=media" alt="" width="358"><figcaption></figcaption></figure>

After pressing Submit Power DevBox Share will update the required components, there are multiple steps to each:

* Find Share To
* Find Solution\*
* Find Component
* Share/Change Owner/Stop Sharing

The outputs from these steps will show in the output box. This will be a mix of 200 and 204

#### Example response

```
// Some code200
200
200
Finding User

Finding User

Finding User

Finding User

Finding User

Finding User

Finding User

Finding User

200
Updating component 1 of 8

Sharing Component

200
Updating component 2 of 8

Sharing Component

200
Updating component 3 of 8

Sharing Component

200
Updating component 4 of 8

Sharing Component

200
Updating component 5 of 8

Sharing Component

204
""
204
204
""
204
204
200
""
""
""

Updating component 6 of 8

Sharing Component

200
Updating component 7 of 8

Sharing Component

200
Updating component 8 of 8

Sharing Component

204
204
""

""

204
8 components in total, 8 updated, 0 not compatible

""
```

The api calls are in parallel so the order may not be correct as its due on when the response replied.

####

#### Errors

Errors will be shown in the response.

<figure><img src="https://733489716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehrkcZ8ZGrl3MlT1QRM1%2Fuploads%2Fgit-blob-2d0ad4903fc551081e7c3d354ba89f969bba57b4%2Fimage%20(9).png?alt=media" alt="" width="341"><figcaption></figcaption></figure>
