• Akshay Mohan
  • NEWBIE
  • 5 Points
  • Member since 2016


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi there,

I am trying to use Ant to deploy metadata and I'm running across an error that I cannot for life of me resolve. I get this error when trying to deploy a QuickAction:
Error: Target object does not have a valid lookup or master-detail reference to the parent object
The QuickAction just creates a child Campaign object. I get the exact same metadata set up when I create a QuickAction in the UI and then pull down the metadata. The relevant portion of the metadata looks thusly:
<targetObject>Campaign</targetObject>
<targetParentField>Parent</targetParentField>
<type>Create</type>
Clearly Campaign has a lookup to itself. I've double-checked permissions to make sure my user has access to it, which it does. I can't think of anything else to look for and the Internet has been no help, so far. I'd appreciate any guidance.

Thank you!
  • October 16, 2017
  • Like
  • 1

Hi All,

 

Are there any way to get the package Id using Apex code?

 

Thanks!