cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Chap
Frequent Visitor

dynamics 365 -> Ms Teams -> Opportunity details

Hi guys,

Recently I have created a simple flow that "alerts" my colleagues from MS TEAMS when an Opportunity is. created.

I can use through "Dynamic content" some of the fields from the opportunity when sending the message automatically, does anyone know how to use any other fields? Through "Expressions"? 


Thank you,
Chap

2 ACCEPTED SOLUTIONS

Accepted Solutions
Jcook
Super User III
Super User III

Hello,

Yes you can use expressions to reference any field in dynamics. My example expression:
body('List_records')['value']?['systemuserid']

In my example I am using a List records
The expression is being used in a Compose action.
Systemuserid is my field.

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others

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

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

Jcook
Super User III
Super User III

Hi @Chap

Additionally do a Lost records on the opportunity entity,

Run the flow and see what the body of the Lost records action is.

Now you can use the expression I showed above just replace the last part with the field you want to grab.

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others

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

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

4 REPLIES 4
Jcook
Super User III
Super User III

Hello,

Yes you can use expressions to reference any field in dynamics. My example expression:
body('List_records')['value']?['systemuserid']

In my example I am using a List records
The expression is being used in a Compose action.
Systemuserid is my field.

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others

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

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

Chap
Frequent Visitor

Hi Josh and thank you so muchh for your reply.

Can you give me an example if I want to share the "STATUS" field of the opportunity?

Jcook
Super User III
Super User III

Sure,

The easiest way is to just do a list records action on the opportunity entity.
Than below add a Compose action,
From here you will be able to see all the dynamic content available to be grabbed.

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others

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

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Jcook
Super User III
Super User III

Hi @Chap

Additionally do a Lost records on the opportunity entity,

Run the flow and see what the body of the Lost records action is.

Now you can use the expression I showed above just replace the last part with the field you want to grab.

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others

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

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (54,016)