This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install EpiCloud first time deploying | |
| Install-Module EpiCloud -Scope CurrentUser | |
| # Import EpiCloud and configure for Test-environment | |
| Import-Module EpiCloud | |
| $global:EpiCloudApiEndpointUri = "https://paasportal.epimore.com/api/v1.0/" | |
| # Connect EpiCloud using credentials from portal | |
| $projectId = "projectId" | |
| $key = "key" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var newSelection = new Tridion.Cme.Selection(); | |
| var item = selection.getItem(0); // Get the first and only item | |
| newSelection.addItem(item); | |
| // Set Publish as allowed action to ensure that the Publish command is executed successfully. | |
| newSelection.properties.allowedActions = $const.AllowedActions.Publish; | |
| $commands.executeCommand("Publish",newSelection); |