-
ChatterFeed
-
0Best Answers
-
1Likes Received
-
0Likes Given
-
5Questions
-
5Replies
Apex Trigger error when deleting account and sales order record
Hi.
I am getting the following error when I try to delete an account. It prompts me to delete a sales order record, SO is a custom object.
Validation Errors While Saving Record(s) There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Apex trigger Workforce2_CreateInventoryMessageForSales_Order_c caused an unexpected exception, contact your administrator: Workforce2_CreateInventoryMessageForSales_Order_c: execution of BeforeDelete caused by: TOA2.Workforce2_Exception: Mandatory mapping for field 'Activity Id' is not defined for class "Sales_Order__c".: (TOA2)".
I don't know how to fix it. Any suggestions or help would be greatly appreciated. Thanks in advance.
I am getting the following error when I try to delete an account. It prompts me to delete a sales order record, SO is a custom object.
Validation Errors While Saving Record(s) There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Apex trigger Workforce2_CreateInventoryMessageForSales_Order_c caused an unexpected exception, contact your administrator: Workforce2_CreateInventoryMessageForSales_Order_c: execution of BeforeDelete caused by: TOA2.Workforce2_Exception: Mandatory mapping for field 'Activity Id' is not defined for class "Sales_Order__c".: (TOA2)".
I don't know how to fix it. Any suggestions or help would be greatly appreciated. Thanks in advance.
-
- Joanna Knott 6
- February 08, 2016
- Like
- 0
- Continue reading or reply
-
- Joanna Knott 6
- February 04, 2015
- Like
- 0
- Continue reading or reply
Alpha-numeric auto generated ID
Is there a way to create an alpha-numeric auto generated ID consisting of random letters and numbers?
-
- Joanna Knott 6
- October 01, 2014
- Like
- 0
- Continue reading or reply
Portal ID requested when sending a SOAP API to sandbox
Here is the SOAP login envelope I am stuck on:
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Header>
<LoginScopeHeader xmlns="urn:partner.soap.sforce.com">
<organizationId>00DJ0000003L9lt</organizationId>
<portalId>[string?]</portalId>
Where do I find our Portal ID?
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Header>
<LoginScopeHeader xmlns="urn:partner.soap.sforce.com">
<organizationId>00DJ0000003L9lt</organizationId>
<portalId>[string?]</portalId>
Where do I find our Portal ID?
-
- Joanna Knott 6
- September 18, 2014
- Like
- 1
- Continue reading or reply
Portal ID issue
When making a call to our Sanbox from our external website, I was asked for Org ID and Portal ID. Where do I find my Portal ID?
-
- Joanna Knott 6
- September 18, 2014
- Like
- 0
- Continue reading or reply
Portal ID requested when sending a SOAP API to sandbox
Here is the SOAP login envelope I am stuck on:
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Header>
<LoginScopeHeader xmlns="urn:partner.soap.sforce.com">
<organizationId>00DJ0000003L9lt</organizationId>
<portalId>[string?]</portalId>
Where do I find our Portal ID?
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Header>
<LoginScopeHeader xmlns="urn:partner.soap.sforce.com">
<organizationId>00DJ0000003L9lt</organizationId>
<portalId>[string?]</portalId>
Where do I find our Portal ID?
-
- Joanna Knott 6
- September 18, 2014
- Like
- 1
- Continue reading or reply
- Joanna Knott 6
- February 04, 2015
- Like
- 0
- Continue reading or reply
Alpha-numeric auto generated ID
Is there a way to create an alpha-numeric auto generated ID consisting of random letters and numbers?
- Joanna Knott 6
- October 01, 2014
- Like
- 0
- Continue reading or reply
Portal ID requested when sending a SOAP API to sandbox
Here is the SOAP login envelope I am stuck on:
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Header>
<LoginScopeHeader xmlns="urn:partner.soap.sforce.com">
<organizationId>00DJ0000003L9lt</organizationId>
<portalId>[string?]</portalId>
Where do I find our Portal ID?
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Header>
<LoginScopeHeader xmlns="urn:partner.soap.sforce.com">
<organizationId>00DJ0000003L9lt</organizationId>
<portalId>[string?]</portalId>
Where do I find our Portal ID?
- Joanna Knott 6
- September 18, 2014
- Like
- 1
- Continue reading or reply