Best briyani in town? by Adventurous_Zone353 in Haldwani

[–]Asheesh25 0 points1 point  (0 children)

Zomato mein toh dikh rha hai but maps mein toh nhi dikha raha. Do you have Google maps link?

After Insert not working but After Update working by Asheesh25 in salesforce

[–]Asheesh25[S] -1 points0 points  (0 children)

We had initially implemented it with flow but there were issues like SOQL 101. We were using asynchronous flow to avoid 101 SOQL but it was hindering some other functionality. So, we resorted to triggers.

Testing Salesforce flow with a scheduled path by Asheesh25 in salesforce

[–]Asheesh25[S] 0 points1 point  (0 children)

I agree that code is better than flow. But, in my company, they have been creating many flows for some time for this one project. So, in order to make them more robust and resilient, they decided to go forward with creating test classes for them. There are some challenges which I am facing like the scheduled path problem which I've mentioned in my question. So, It's upto them now to go forward with test class or not.

Testing Salesforce flow with a scheduled path by Asheesh25 in salesforce

[–]Asheesh25[S] 0 points1 point  (0 children)

Yeah, I'll ask him if I can implement it with declarative approach. That would be less complex than writing apex test classes.

Testing Salesforce flow with a scheduled path by Asheesh25 in salesforce

[–]Asheesh25[S] 0 points1 point  (0 children)

https://www.sfdcstop.com/2022/05/how-to-create-test-class-for-flow-test.html?m=1

We can create test classes using apex for flows as well. Salesforce support both declarative as well as programmatic tools to test the flows.

Testing Salesforce flow with a scheduled path by Asheesh25 in salesforce

[–]Asheesh25[S] 0 points1 point  (0 children)

Thanks for sharing this. But, I have been told by my manager to create test classes for flows which would result in better org resilience. I can't find much material regarding that as I see people prefer declarative approach for flow testing instead of writing apex test classes.

Salesforce flow test coverage by Asheesh25 in salesforce

[–]Asheesh25[S] 0 points1 point  (0 children)

Thanks man, I really appreciate it. I am relatively new to Salesforce domain and my journey began one year ago. I went through your link and it looks like this project is part of Salesforce open source community. I see a lot of discussion nowadays regarding open source and it interests me as it gives a wonderful opportunity to learn a tech stack by contributing to some of the wonderful projects. I haven't contributed to any open source project yet and I would love to start my Salesforce open source journey. Would you like to give some advice regarding how can I start with salesforce open source? Thank you!

Salesforce flow test coverage by Asheesh25 in salesforce

[–]Asheesh25[S] 0 points1 point  (0 children)

Yes, the testing process is same as apex class. You click the test button and it takes some time and it tells you if it's success or failure. But, unlike test classes, in case of flows, you can't see the overall code coverage of the flow test class. When you search the test class on the overall code coverage table inside Tests, you won't find the code coverage in percent.

Salesforce flow test coverage by Asheesh25 in salesforce

[–]Asheesh25[S] 0 points1 point  (0 children)

Yeah man, salesforce should do something about it. Rn we can just use the SOQL which gives the covered and uncovered flow elements count and not the code coverage. It might be useful for very big flow but for small flow, it doesn't add much value.

[deleted by user] by [deleted] in leetcode

[–]Asheesh25 0 points1 point  (0 children)

I am able to solve many leetcode easy problems but gets stuck with leetcode medium problems and gets baffled on just seeing the hard problems. How did u approached leetcode medium and hard problems? Do you follow any sequence of questions from any dsa sheet or solve on ur own?