cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft
Microsoft

Create a task when a user story is created, custom field help

I'm fairly new to the Power Automate world, and I need some help. I'm currently working on a project that is Agile heavy and the work is tracked via AzDO (Azure DevOps). I created a flow that is triggered when a User Story is created. The trigger then checks the conditions and if successful will create two tasks that are linked to the User Story as Hierchy-Reverse. There are a couple of custom fields that I would like to add as Dynamic Content, in the Other Field for the work item creation. I ran into this error and I don't know how to convert Int format to Object.

"Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'workItem' validation failed in workflow operation 'Create_a_work_item': The parameter with value '"@triggerOutputs()?['body/fields/Custom_MOTSID']"' in path 'workItem/userEnteredFields' with type/format 'Integer/int32' is not convertible to type/format 'Object'.'."

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Create a task when a user story is created, custom field help

So, I figured out what the issue was. Turns out for custom fields you need to use JSON to define the dynamic content. For example:

{ "custom.<name of custom field>" : <Dynamic Content Here>}

or, another way of doing the same thing is direct

 

{ "Name of Custom Field" : <Dynamic Content Here>}

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Re: Create a task when a user story is created, custom field help

Hi @blackstorm87 

 

Could you please post a screenshot of your flow and the run history details.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Microsoft
Microsoft

Re: Create a task when a user story is created, custom field help

Can we take this conversation offline? There is customer data in the flow that I'm not at liberty to post in an open forum.

Highlighted
Microsoft
Microsoft

Re: Create a task when a user story is created, custom field help

So, I figured out what the issue was. Turns out for custom fields you need to use JSON to define the dynamic content. For example:

{ "custom.<name of custom field>" : <Dynamic Content Here>}

or, another way of doing the same thing is direct

 

{ "Name of Custom Field" : <Dynamic Content Here>}

View solution in original post

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,531)