You need to sign in to do that
Don't have an account?
SyncedQuoteId is Read-Only in trigger
Hello All
my issue is this:
In a trigger, i need to retreive the synced quote of an opportunity.
In this trigger i have a query retreiving Opportunities.
When i add the field 'SyncedQuoteId' to the query (and nothing more - no changes to the field or anything)
i get the following exception:
Error:Apex trigger Opp1_AfterUpdate caused an unexpected exception, contact your administrator: Opp1_AfterUpdate: execution of AfterUpdate caused by: System.Exception: The opportunity SyncedQuote field is read only within a trigger.: Trigger.Opp1_AfterUpdate: line 58, column 10
why do i get this exception just for querying the field?
has someone encountered this and solved it?
thanks
NDgani
Hi Mel1
i checked what you suggested and field is marked as read-only and visible.
but that should not present a problem, because i'm only retreiving it in a query, nothing else.
NDgani
Running into this issue as well... anybody ever find a solution?
This might help...
http://blog.softwareallies.com/2010/08/salesfoce-syncing-quote-in-apex.html