You need to sign in to do that
Don't have an account?
Roman Riabenskyi
JS button on OpportunityLineItem doesn't see standard fields (OpportunityId, Name)
Hello! I need to create a JS button that creates a record on custom object and copies values to the record.
I faced with the problem that OpportunityId and Name fields do not exist but Id field and custom field Reference__c does exist. Maybe you have some thoughts about this?
Here are the code and screenshoots:
I faced with the problem that OpportunityId and Name fields do not exist but Id field and custom field Reference__c does exist. Maybe you have some thoughts about this?
Here are the code and screenshoots:
var opplineitem = new sforce.SObject("OpportunityLineItem"); opplineitem.id = "{!OpportunityLineItem.Id}"; opplineitem.oppid = "{!OpportunityLineItem.OpportunityId}"; opplineitem.name = "{!OpportunityLineItem.Name}"; opplineitem.ref = "{!OpportunityLineItem.Reference__c}";