question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New command: `m365 pp card clone`

See original GitHub issue

Usage

m365 pp card clone

Description

Clones the specified Power Platform card.

Options

Option Description
-i, --id [id] The ID of the card. Specify either id or name but not both.
-n, --name [name] The name of the card. Specify either id or name but not both.
--newName <newName> The name of the new card
-e, --environment <environment> The name of the environment from which to clone the card.
--asAdmin Run the command as admin and clone the card in environments you do not have explicitly assigned permissions to.

Examples

Clones the card with the id d87a7535-dd31-4437-bfe1-95340acd55c5 named Default-d87a7535-dd31-4437-bfe1-95340acd55c5. to ContosoCard

m365 pp card clone --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id d87a7535-dd31-4437-bfe1-95340acd55c5 --newName "ContosoCard"

Clones the card with the id d87a7535-dd31-4437-bfe1-95340acd55c5 named Default-d87a7535-dd31-4437-bfe1-95340acd55c5. to ContosoCard as administrator.

m365 pp card clone --environment Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --id d87a7535-dd31-4437-bfe1-95340acd55c5 --newName "ContosoCard" --asAdmin

Additional Info

POST to https://org0116c1d1.crm4.dynamics.com/api/data/v9.1/CardCreateClone Payload {CardId: "cardid-of-card-toclone<id>", CardName: "newName"}

response: "@odata.context":"https://org0116c1d1.crm4.dynamics.com/api/data/v9.1/$metadata#Microsoft.Dynamics.CRM.CardCreateCloneResponse","CardIdClone":"b41a8e57-28f2-4fd9-a13d-990daa84a757"}

@pnp/cli-for-microsoft-365-maintainers quick Q; we could use the name as name for the new card as we do in teams team clone but if we ever want to retrieve cards by their name we run into a problem. What is your feeling for the proper parameter for the name of a new card?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
nicodecleyrecommented, Oct 24, 2022

@nicodecleyre since we introduced a name parameter in the pp card get I would suggest we add it here as well, what do you think?

Sure can! I can make a function before cloning the card, that will just return the props.id if the id parameter is provided, and will make a call with the api /api/data/v9.1/cards?$filter=name eq 'Name' so that this function will return the id when the name parameter is provided!

Good point to keep it all consistent! 💪

2reactions
appieschotcommented, Oct 24, 2022

Done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

team clone - CLI for Microsoft 365
Using this command, global admins and Microsoft Teams service admins can access teams that they are not a member of. When tabs are...
Read more >
Copy and move Planner tasks - Microsoft Support
With the Copy task and Move task commands, you can: Copy tasks from one plan to another. Move tasks from one plan to...
Read more >
Azure Virtual Desktop: Simple Step-by-Step Walkthrough
It is also just the beginning of an –end-to-end walkthrough of this new ... You can copy and paste the command above into...
Read more >
New Exchange Online Admin Center Loses Some Magic, But ...
You could copy the code and reuse it in your own scripts. Original PowerShell command logging in the Exchange 2007 EMC ...
Read more >
Microsoft Planner Templates in Teams: 15 Examples - nBold
Then you start adding cards with tasks, structuring them, ... copy them into new commands, and optimize your work very easily.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found