SFDO-Community-Sprints / Interactions-for-Student-Recruitment

Open Source Community Sprint project focused on providing higher education institutions the tools they need to manage student recruitment in Salesforce.
BSD 3-Clause "New" or "Revised" License
51 stars 19 forks source link

Unable to create Opportunity using New Interaction #20

Open bindalparidhi opened 5 years ago

bindalparidhi commented 5 years ago

Error - Audit Reason Reason: Interaction has an Opportunity Key, but could not find associated Opportunity in the system. Please verify that the Opportunity Key is valid.

How can I create a new Opportunity when it is a lookup field? I added data in all the fields corresponding and required to create an opportunity like Term, Recruitment Interest, Academic Interest, Opportunity Stage, Admit Type.

Also, I have mentioned valid Firstname, Lastname and Email address.

My Opportunity Key looks like this - .Graduate.a0h3C00000Hk2u4.a0C3C0000047kQO

It would be helpful if somebody can share a rectifying solution for the same. Thanks.

bindalparidhi commented 5 years ago

I was able to resolve the issue I was facing above. But I am stuck into another situation where I am able to auto-create the Opportunity via Interaction. But the Opportunity key still looks like .Undergraduate.a0C3C0000047kRV or .Graduate.a0h3C00000Hk2u4.a0C3C0000047kR9 for decentralized program. That means my Opportunity key is still missing Contact's ID.

Would appreciate if someone can help me to fix this issue.

jacebryan commented 5 years ago

Hi @bindalparidhi - Do you have access to the Power of US Hub? If so I would recommend posting this issue there as well.

karamcintyre commented 5 years ago

@bindalparidhi Can you confirm the code is setting the Opportunity Key to that when the Opportunity is created? The package also comes with a workflow rule that should set the key found on the Interaction record but prepends the 18-digit Contact ID. The reason for this is to make sure all Opportunities have the correct key, just in case you allow the creation of Opportunities outside of the Interactions process. I would make sure the field update for that rule is correct, then run a debug log on the code to figure out what it is setting the Opportunity Key to. Prepending that ID should be part of the code.

nvasquez97 commented 5 years ago

Error - Audit Reason Reason: Interaction has an Opportunity Key, but could not find associated Opportunity in the system. Please verify that the Opportunity Key is valid.

How can I create a new Opportunity when it is a lookup field? I added data in all the fields corresponding and required to create an opportunity like Term, Recruitment Interest, Academic Interest, Opportunity Stage, Admit Type.

Also, I have mentioned valid Firstname, Lastname and Email address.

My Opportunity Key looks like this - .Graduate.a0h3C00000Hk2u4.a0C3C0000047kQO

It would be helpful if somebody can share a rectifying solution for the same. Thanks.

Error - Audit Reason Reason: Interaction has an Opportunity Key, but could not find associated Opportunity in the system. Please verify that the Opportunity Key is valid.

How can I create a new Opportunity when it is a lookup field? I added data in all the fields corresponding and required to create an opportunity like Term, Recruitment Interest, Academic Interest, Opportunity Stage, Admit Type.

Also, I have mentioned valid Firstname, Lastname and Email address.

My Opportunity Key looks like this - .Graduate.a0h3C00000Hk2u4.a0C3C0000047kQO

It would be helpful if somebody can share a rectifying solution for the same. Thanks.

Hey @bindalparidhi, how did you solve your first problem?

itbeaulieu commented 4 years ago

I'm having the same issue.. Any updates?