external connection urltoitemresolver add
Adds a URL to item resolver to an external connection
Usage
m365 external connection urltoitemresolver add [options]
Options
-c, --externalConnectionId <externalConnectionId>
The ID of the external connection to which to add the resolver
--baseUrls <baseUrls>
Comma-separated list of base URLs
--urlPattern <urlPattern>
Regex pattern to match URLs
-i, --itemId <itemId>
Pattern that matches captured matches from the URL with the external item ID
-p, --priority <priority>
Integer that defines the resolution order
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Examples
Adds a URL to item resolver to an existing connection
m365 external connection urltoitemresolver add --externalConnectionId "samplesolutiongallery" --baseUrls "https://adoption.microsoft.com" --urlPattern "/sample-solution-gallery/sample/(?<sampleId>[^/]+)" --itemId "{sampleId}" --priority 1
Response
The command won't return a response on success.
More information
- Microsoft Graph external connection activitySettings: https://learn.microsoft.com/graph/api/resources/externalconnectors-activitysettings?view=graph-rest-1.0