Skip to content
Permalink
Browse files

Update CreateQuoteLightningActionController.apxc

Added handler for saving contact
  • Loading branch information...
Sonia
Sonia committed Jul 18, 2017
1 parent 234b31d commit ddae1bcdc8f7e7b30f51ab1d5bb494b417cbfbef
Showing with 2 additions and 1 deletion.
  1. +2 −1 CreateQuoteLightningActionController.apxc
@@ -7,9 +7,10 @@ public with sharing class CreateQuoteLightningActionController {
}

@AuraEnabled
public static Quote saveQuoteWithOpportunity(Quote quote, Id opportunityId) {
public static Quote saveQuoteWithOpportunity(Quote quote, Id opportunityId, Id contactId) {
// Perform isAccessible() and isUpdateable() checks here
quote.OpportunityId = opportunityId;
quote.ContactId = contactId;
upsert quote;
return quote;
}

0 comments on commit ddae1bc

Please sign in to comment.
You can’t perform that action at this time.