src/Private/Report/PPT/Build-MCSGoalsOfSfMC.ps1
|
function Build-MCSGoalsOfSfMC { Param($Presentation, $AboutGoalsOfSfMC, $Debug) if ($Debug.IsPresent) { $DebugPreference = "Continue" } else { $DebugPreference = "SilentlyContinue" } Write-Debug ((get-date -Format 'yyyy-MM-dd HH_mm_ss')+' - '+"Building Goals of SfMC Slide") $CurrentSlide = 3 $SlideSfMC = $Presentation.Slides | Where-Object { $_.SlideIndex -eq $CurrentSlide } ($SlideSfMC.Shapes | Where-Object { $_.Id -eq 2 }).TextFrame.TextRange.Text = $AboutGoalsOfSfMC.AccelerateTimeToValue ($SlideSfMC.Shapes | Where-Object { $_.Id -eq 4 }).TextFrame.TextRange.Text = $AboutGoalsOfSfMC.DriveSolutionReliability ($SlideSfMC.Shapes | Where-Object { $_.Id -eq 5 }).TextFrame.TextRange.Text = $AboutGoalsOfSfMC.DoMoreWithYourSolution Write-Debug ((get-date -Format 'yyyy-MM-dd HH_mm_ss')+' - '+"Finished Building Goals of SfMC Slide") start-sleep -Milliseconds 100 } |