You need to sign in to do that
Don't have an account?
Shiva Rajendran
Advantages of using salesforce for complete custom development project instead of using java and heroku?
The salesforce if it involves too much coding ,then i noticed lot of complexities in the code whenever the salesforce updates some of its featues, i would like to know why would someone go for hardcore customization in salesforce instead of choosing java and heroku? In this case ,their are quite a lot of advantages like
1: no limits as in salesforce
2: licenses are cheap so if the user count is high , it will profitable in the long run
3: No need to have dependency on the existing functionality which may mess with the functionality required.( i have personally been through this, where an existing functionality completely complicated the custom development required)
4: And also need not concern the code breaking because of any standard functionality changes in salesforce ( i have been through this when creating the dynamic thread id in salesforce ,it crashes at some time and no guarante will it work later)
Do share your thoughts to it.
Thanks and Regards,
Shiva RV
1: no limits as in salesforce
2: licenses are cheap so if the user count is high , it will profitable in the long run
3: No need to have dependency on the existing functionality which may mess with the functionality required.( i have personally been through this, where an existing functionality completely complicated the custom development required)
4: And also need not concern the code breaking because of any standard functionality changes in salesforce ( i have been through this when creating the dynamic thread id in salesforce ,it crashes at some time and no guarante will it work later)
Do share your thoughts to it.
Thanks and Regards,
Shiva RV
All Answers
Firstly thank you so much for the response, Looks very well explained.
Actually i worked on an emailmessage draft functionality on email to case , where if a email is sent to a customer from case , some emails has to be submitted for approval for quality check.Here i used beforeinsert trigger because the email already go when it comes to afterinsert trigger handling.
So what i did there was, in before trigger i changed the toAddress to the manager's email , so an email goes to manager. while i copy the emailmessage data into a new emailmessage record in draft mode and submit it for approval to the manager .
Once the draft emailmessage is approved by the manager, email is sent to the user using afterupdate trigger
Here i noticed a strange behaviour , if the user enters the toAddress in email action from case record , the code is working fine.
But instead if the user is choosing contact record in the toAddress lookup , the email is already sent and only then the before trigger is fired.
I hope it will be fixed by salesforce soon , i hope if salesforce made changes on the functionality the code impacts.
Also in the code , we calculated the custom thread id for the record and used the thread id creation given in the internet and few times that custom thread id creation also throws an error so handled that currently , not sure will this be safe either in the future.
Thanks ,
Shiva RV
https://help.salesforce.com/articleView?id=case_interaction_approval_processes.htm&type=5
https://help.salesforce.com/articleView?id=case_interaction_enabling_email_drafts.htm&type=5
Depends what you are using, But if this is not an option, I would instead drive the custom functionality off a custom action (one using VF/LC depending on what is more appropriate for your org) - rather than a trigger. That way you'll have full control over what is initated and how.
The draft email functionality is not working as that in lightning.
Morever our requirement had every user having certain percentage of value for quality check means only those percent of records should be submitted for approval.
Yeah exactly that's what even we initally thought of using a custom action which makes more sense , but the standard send email button couldnt be hidden from the layout on case in lightning , so there will be two actions on the page which would be misleading.
Hope their will be some new features in the salesforce new release which helps in the functionality.
You have any thoughts on the below behaviour by salesforce
If the user is choosing contact record in the toAddress lookup and click sent on email action in case record , the email is already sent and only then the before trigger is fired else the email is sent after the before trigger for emailmessage is fired but before the after trigger is fired.
Basically the email should be sent post of after trigger, not sure why salesforce behaves this way.
Thanks ,
Shiva RV
Thanks,
Shiva RV
Also in the current implementation , it has been made using the trigger only , awaiting some salesforce upgrades which can help in fullfilling the requirement, because currently my lead suggested that to recreate the full email action with ui is complex and time consuming since we have to include attachment features and other icons on the ui as well :(
In the current <apex:emailPublisher> , there is little support for attaching to a apex action which is crucial for the code.
they have showSendButton attribute which can be enabled and if it's enabled then standard email functionality will happen onclick of a send button.
Now in this case, i may have to create a new button which will do the funcationality needed at the backend by attaching it to a controller and do the processing at the backend
But if i create a new button ,then ui will also be a challenge i guess .
Not sure , i will try to dig deep into this practically and check it out.
Thanks Paul for the help.
https://supermashflash2online.com/