Using an Azure Devops trigger (When a work item is updated), I have an action step (List records) to filter on the value of "Vsts_AssignedToEmail", however when I look in Dynamic Content, this field is not displayed. However in the trigger outputs, the field shows with its value (erased in screenshot).
I've tried using the expression triggerOutputs()?['Vsts_AssignedToEmail'], but it returns no results.
Solved! Go to Solution.
Hi @learningCRM ,
I can use Dynamic content-AssignedToEmail here, please try See more to see all options:
If there is still not able to get Dynamic content through the above method, you could use Expression:
triggerBody()['fields']['Vsts_AssignedToEmail']
Also consider using Compose to get Dynamic content first and then use it configure Filter Query:
Please take a try.
Best Regards,
Hi @learningCRM ,
It seems that you have configured the unexpected Dynamic content in Record identifier field.
Enter "id" in the search box and use Unique identifier to configure this field, as below:
Please take a try again.
Best Regards,
@learningCRM Try using 'parse JSON' on the body of the output you get.
Also sometimes certain fields don't appear in the dynamic content window if, for example, their type doesn't match the expected type for the field you're currently editing. Try adding a 'compose' activity and see if the field can be added there. If so then add it there then copy/paste it to wherever you need.
Hi @learningCRM ,
I can use Dynamic content-AssignedToEmail here, please try See more to see all options:
If there is still not able to get Dynamic content through the above method, you could use Expression:
triggerBody()['fields']['Vsts_AssignedToEmail']
Also consider using Compose to get Dynamic content first and then use it configure Filter Query:
Please take a try.
Best Regards,
Thank you, I was able to get the field using triggerBody()['fields']['Vsts_AssignedToEmail'].
However, now my test fails during the Update a record step.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <HTML><HEAD><TITLE>Bad Request</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD> <BODY><h2>Bad Request - Invalid URL</h2> <hr><p>HTTP Error 400. The request URL is invalid.</p> </BODY></HTML>
Hi @learningCRM ,
It seems that you have configured the unexpected Dynamic content in Record identifier field.
Enter "id" in the search box and use Unique identifier to configure this field, as below:
Please take a try again.
Best Regards,
Thank you Barry for your help. I followed your advice and it works but only when I update the task WITHOUT an owner. However I want to also update the Task Owner based on the AssignedToEmail from Azure Devops and I get this error.
I figured it out! I had to update the Owner Type as well.
I figured it out! I had to update the Owner Type as well.
User | Count |
---|---|
87 | |
37 | |
25 | |
13 | |
12 |
User | Count |
---|---|
117 | |
55 | |
36 | |
23 | |
21 |