a "Powershell Script" task that save data in variables
a "SendGrid Email" task that must include these variables in the body
In the powershell script, I use the convention
Write-Host "##vso[task.setvariable variable=var1]<div>$var1</div>"
From other scripts I can retrieve the variable usign a simple $var1 ... but in SendGrid Email task this doesn't work
How can I include the results of previous tasks in the body of the email?
I noticed that other standard variables as $(Release.Deployment.RequestedForEmail) works well. Why for user-defined variables is not the same?
I have an Azure Pipeline where I have
In the powershell script, I use the convention
Write-Host "##vso[task.setvariable variable=var1]<div>$var1</div>"
From other scripts I can retrieve the variable usign a simple$var1
... but in SendGrid Email task this doesn't workHow can I include the results of previous tasks in the body of the email? I noticed that other standard variables as $(Release.Deployment.RequestedForEmail) works well. Why for user-defined variables is not the same?