BC Workflow- No Approval, Rejection, Delegate comments in notification emails

Image
  According to Microsoft, there is no roadmap to add workflow approval, rejection and delegate comments to the BC out of the box email notifications. You can always add an extension, but this should be OOB.  I need the community to help vote this up!  Please go here and vote today:  https://experience.dynamics.com/ideas/idea/?ideaid=a2be05ef-3d3c-eb11-8fed-0003ff68d921

Formatting Phone Numbers in SQL Reporting Services

Every time, without fail, I need to create a phone number on an SSRS report for a client and get stuck with phone formatting. Every time I am searching forums. I thought it would be awesome if it was in some amazing blog that I could visit and copy from each time.

So... here it is, if not for myself, then for others:

In Report Builder or visual studio, add your phone number field to the report. 

Right click on that text box where you added the field and click on expression. 

Clear the formula box and type in the expression below.



Formula to Use: 
=IIF(Fields!Phone.Value Is Nothing, Nothing, IIF(IsNumeric(Fields!Phone.Value), Format(Val(Fields!Phone.Value), "(000) 000-0000"), Fields!Phone.Value))














Note: My field is actually called Phone. If your field is not called phone, you will need to replace it with your phone field name. (Like: Fields!E_T_PHONE_HOME.Value)


Then click on OK at the bottom of the expression box.

Run your report.








Magic...
Until next time.

Comments

Post a Comment

Popular posts from this blog

Dynamics 365 Business Central vs. NetSuite and Other Competitors- Common Myths Debunked

Business Central Versus NetSuite- Side by Side Comparison