Halacha Orach Chaim 230
A person can and should pray for success in all areas of life. However, one should not pray for something that is dependent on a miracle to occur. For example, if someone hears cries coming from within a city, a prayer that the cries should not be coming from ones family and home is considered a prayer in vain. The reason for this is because whatever happened already took place, and one should not pray for miracles.
It would be appropriate to pray that peace and harmony should prevail in one’s home at a time that there is no known danger. When returning home from a trip it is prudent to offer thanks on a safe return.
When engaging in business, one should pray that the business deal should be successful. One should not pray for success in a business engagement after the deal has begun. At that point one should give thanks for the success that has been had from the business deal.
Before going in for medical treatment one should pray that the treatment should be effective and successful. Upon the completion of a medical treatment one should thank Hashem for the success. According to the Taz, and perhaps the Bais Yosef, this Bracha can be said with the Shem Umalchus, however the Mishna Berura says that he has not seen this done.

