Training
Module
Introduction to expressions in Power Automate - Training
Learn how to write expressions in Power Automate.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
If a send port is marked as dynamic, you can assign to it the value of some variable of type string that contains the URI of the port you want to use in the Expression shape. For example,
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)="mailto:johnd@contoso.com";
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)=@"file://C:\MyLocation\%SourceFileName%.xml";
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)=@"msmq://.\private$\MyQueue";
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)="http://MyOrder.contoso.com";
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)="ftp://MyServer/MyDirectory/%MessageID%.xml";
Then you can further assign the properties to the outgoing messages. For example,
MyOutgoingMessage(SMTP.Subject)="Purcahse Order Received";
MyOutgoingMessage(FILE.ReceivedFileName)="MyFileName.xml";
MyOutgoingMessage(FTP.UserName)="MyUserName";
MyOutgoingMessage(FTP.Password)="MyPassword";
MyOutgoingMessage((MSMQ.Transactional)=true;
Training
Module
Introduction to expressions in Power Automate - Training
Learn how to write expressions in Power Automate.