Skip to content

New command: create external item #5530

Description

@waldekmastykarz

Usage

m365 external item add

Description

Creates external item

Options

Option Description
--id <id> The ID of the item to create
--externalConnectionId <externalConnectionId> The ID of the external connection on which to create the item
--content <content> External item content
--contentType [contentType] Type of content to load. Allowed values: text (default), html
--acls <acls> List of permissions to set on the item, in the format accessType1,type1,value1;accessType2,type2,value2

Allows unknown options, which will be mapped to properties

Examples

Creates an external item that everyone is allowed to access:

m365 external item add --id "pnp-ensure-siteassets-library" --connectionId "samplesolutiongallery" --content "Ensure that the Site Assets library is created." --title "Ensure the Site Assets Library is created" --description "Ensure that the Site Assets library is created." --authors@odata.type "Collection(String)" --authors "Phil Harding" --acls "grant,everyone,everyone"

Default properties

No response

Additional Info

Uses the following endpoint: https://learn.microsoft.com/en-us/graph/api/externalconnectors-externalitem-create?view=graph-rest-1.0&tabs=http

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions