-
ChatterFeed
-
0Best Answers
-
2Likes Received
-
0Likes Given
-
5Questions
-
3Replies
How to get error messages in Visual Studio Code? It used to tell why a deploy failed but not anymore
When I code something and deploy to a sandbox, something it fails if I made a mistake or something doesn't work with the configuration of the sandbox. When it fails, it used to give a details reason such as:
row 3 col 5 illegal assignment of String in Number field
However, for some reason it stopped giving reasons but just the outcome
Now it just says DeployFailed: Deploy Failed
I am not sure if something change in CLI or I made a wrong setting.
Can anyone please help?
Thanks!!
- Ian Kang 1
- June 21, 2019
- Like
- 0
- Continue reading or reply
How can I implement chain of picklists - 5 Whys?
Hi, Thanks for looking into my question. I'd like to build a new feature that allows the Salesmen to enter very detailed lost reasons. such as:
----Example:
Opportunity stage changes to Closed Lost
-> Lost Reason Category: Low Flexibility
-> Lost reason sub categories for Low Flexibility : Lack of custom fields
-> On which page did you need the custom fields? : Sign-up page
-> How did you want to use the custom fields?: Ask custom questions before signing up
----
What would be the best way to implement it?
I was thinking about setting up a custom object called 'Lost Reasons' but even then I couldn't think of a way to have 5 level of picklists. I could create many custom picklists and use visualforce page to change the following picklist based on the previous picklist selection. However, it wouldn't have been able to be summaried in the Related List on Opportunity page.
I am soo lost
Please share your wisdom
Thanks and kind regards,
- Ian Kang 1
- June 18, 2019
- Like
- 0
- Continue reading or reply
Flow doesn't have access to Lead.IsConverted field?
The flow failed to access the value for FoundLead.IsConverted because it hasn't been set or assigned.
I checked the found lead's IsConverted status and it was TRUE, so I do not understand why Flow says it is not set or assigned.
Do Flows not have access to this field?
Thanks for your help!
- Ian Kang 1
- June 13, 2019
- Like
- 2
- Continue reading or reply
how can I remove a trigger and test class from production?
So there is an APEX Trigger and APEX Test Class I deployed in production.
It turned out the APEX Trigger is not working well, so I tried to removed the Trigger; however apparently there is no way I can delete a trigger from production. Instead, I need to deactivate the trigger and push that to production.
And here comes the problems.
- How can I meet 75% code coverage when the trigger is inactive? it won't run, right?
- Even if I somehow manage to deactivate the trigger in Production how can I delete the test class from production which is no longer valid (since its trigger is now inacive). It will always fail the local test
- Ian Kang 1
- June 05, 2019
- Like
- 0
- Continue reading or reply
how to write a test class to check if a particular System.debug(message); is printed
I was just wondering if there is a way to use System.assertEquals(); or anything similiar in test class to check if a particular System.debug(); statement is printed.
Could you share your trick if you know a way?
Thanks!
- Ian Kang 1
- May 31, 2019
- Like
- 0
- Continue reading or reply
Flow doesn't have access to Lead.IsConverted field?
The flow failed to access the value for FoundLead.IsConverted because it hasn't been set or assigned.
I checked the found lead's IsConverted status and it was TRUE, so I do not understand why Flow says it is not set or assigned.
Do Flows not have access to this field?
Thanks for your help!
- Ian Kang 1
- June 13, 2019
- Like
- 2
- Continue reading or reply
How to get error messages in Visual Studio Code? It used to tell why a deploy failed but not anymore
When I code something and deploy to a sandbox, something it fails if I made a mistake or something doesn't work with the configuration of the sandbox. When it fails, it used to give a details reason such as:
row 3 col 5 illegal assignment of String in Number field
However, for some reason it stopped giving reasons but just the outcome
Now it just says DeployFailed: Deploy Failed
I am not sure if something change in CLI or I made a wrong setting.
Can anyone please help?
Thanks!!
- Ian Kang 1
- June 21, 2019
- Like
- 0
- Continue reading or reply
how can I remove a trigger and test class from production?
So there is an APEX Trigger and APEX Test Class I deployed in production.
It turned out the APEX Trigger is not working well, so I tried to removed the Trigger; however apparently there is no way I can delete a trigger from production. Instead, I need to deactivate the trigger and push that to production.
And here comes the problems.
- How can I meet 75% code coverage when the trigger is inactive? it won't run, right?
- Even if I somehow manage to deactivate the trigger in Production how can I delete the test class from production which is no longer valid (since its trigger is now inacive). It will always fail the local test
- Ian Kang 1
- June 05, 2019
- Like
- 0
- Continue reading or reply