• Joanna Knott 6
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 5
    Replies
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. 
Can I move metadata from one sandbox to antoher? If yes, how? 
Is there a way to create an alpha-numeric auto generated ID consisting of random letters and numbers?
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?
    
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?
Can I move metadata from one sandbox to antoher? If yes, how? 
Is there a way to create an alpha-numeric auto generated ID consisting of random letters and numbers?
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?