Functions/New-IARawContent.ps1
Function New-IARawContent { Param( [Parameter(Mandatory = $true)] [PSObject]$IAWidgetTemplate ) $IAWidgetDataValueFieldMaps = Get-IAWidgetDataValueFieldMaps -WidgetTemplateId $IAWidgetTemplate.Id foreach($FieldMap in $IAWidgetDataValueFieldMaps.WidgetDataValueFieldMaps){ if($FieldMap.Display -eq $true){ $RawContent += "<br/>$($FieldMap.Title): {$($FieldMap.DataValueFieldName)}" } } $RawContent += "<br/>" return $RawContent } |