Home

Adding a comment to a DevOps Work Item using a given user

%3CLINGO-SUB%20id%3D%22lingo-sub-872505%22%20slang%3D%22en-US%22%3EAdding%20a%20comment%20to%20a%20DevOps%20Work%20Item%20using%20a%20given%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-872505%22%20slang%3D%22en-US%22%3E%3CP%3ESecond%20time%20writing%20this%2C%20as%20when%20trying%20to%20post%20the%20first%20time%20it%20gave%20me%20an%20error%20%22invalid%20html%22%20and%20discarded%20all%20my%20content%20-.-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20Flow%2C%20I%20am%20using%20a%20DevOps%20-%20Update%20Work%20Item%20action%2C%20that%20updates%20a%20work%20item%20and%20adds%20a%20comment%20to%20it%2C%20using%20the%20Other%20Field%20%22history%22%20as%20the%20content%20of%20the%20comment.%20The%20problem%20is%20that%20the%20author%20is%20set%20to%20be%20the%20owner%20of%20the%20connection%20that%20the%20action%20is%20using%2C%20yet%20since%20the%20flow%20is%20triggering%20using%20an%20email%2C%20the%20author%20needs%20to%20be%20set%20dynamically%20using%20the%20email's%20author%20(provided%20he%20has%20an%20account%20in%20DevOps).%20How%20can%20I%20do%20this%3F%20Is%20there%20another%20name%20in%20%22other%20fields%22%20section%2C%20perhaps%20something%20like%20%22Author%22%20that%20I%20can%20use%20to%20set%20the%20author%20of%20the%20comment%20given%20the%20name%2C%20email%20or%20id%20from%20the%20email%20that%20started%20the%20flow%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EScreenshot%3A%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20599px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F133327i3D055C9D12E47C4D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Test.png%22%20title%3D%22Test.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-872505%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eauthor%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ecomment%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Econnection%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDefault%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDevOps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EEmail%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eitem%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ereply%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Euser%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWork%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ework%20item%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eworkitem%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-873563%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20a%20comment%20to%20a%20DevOps%20Work%20Item%20using%20a%20given%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-873563%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F414352%22%20target%3D%22_blank%22%3E%40ergeorgievoceanmind%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20personally%20don't%20use%20DevOps%20but%20there's%20a%20ton%20of%20experts%20at%20the%20PowerApps%20community%20who%20can%20assist%20with%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fpowerusers.microsoft.com%2Ft5%2FPowerApps-Community%2Fct-p%2FPowerApps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fpowerusers.microsoft.com%2Ft5%2FPowerApps-Community%2Fct-p%2FPowerApps1%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegister%20there%20and%20they'll%20be%20able%20to%20help!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EDamien%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
ergeorgievoceanmind
Regular Visitor

Second time writing this, as when trying to post the first time it gave me an error "invalid html" and discarded all my content -.-

 

In Flow, I am using a DevOps - Update Work Item action, that updates a work item and adds a comment to it, using the Other Field "history" as the content of the comment. The problem is that the author is set to be the owner of the connection that the action is using, yet since the flow is triggering using an email, the author needs to be set dynamically using the email's author (provided he has an account in DevOps). How can I do this? Is there another name in "other fields" section, perhaps something like "Author" that I can use to set the author of the comment given the name, email or id from the email that started the flow?

 

Screenshot:

 

Test.png

1 Reply
Highlighted

Hi @ergeorgievoceanmind 

 

I personally don't use DevOps but there's a ton of experts at the PowerApps community who can assist with this.

 

https://powerusers.microsoft.com/t5/PowerApps-Community/ct-p/PowerApps1

 

Register there and they'll be able to help!

 

Cheers

Damien