My python script generates the following error and the strange thing is that this error only occurs occasionally:
Exception AttributeError: "'NoneType' object has no attribute 'path'" in <bound method Client.__del__ of <__main__.MyObject object at 0x108c3dc50>> ignored
Salesforce: Triggering Closed/Won Opportunity to New Entry in Assets Table associated with Opportunity.
In Salesforce, when an opportunity stage becomes ‘Closed/Won’, it doesn’t automatically convert the Products in Opportunity (OpportunityLineItem) into Assets. Luckily, there are two contributed packages available in Salesforce’s Appexchange; one by Comity Design and the other one by Salesforce Lab.
In this article, we
- Install the Closed/Won trigger package
- Add custom field to Asset table to reference Opportunity
- Modify trigger code to update the reference to Opportunity in the Asset table
- Show how to include the Assets table in the Accounts page layout