How to Override the Opportunity "Buyer Name" behavior

Hello, 

I am trying to overide the Opportunities "Buyer Name" behavior to only search for the Contact and not the Account records. 

I have found the schema and object (I believe) in OpportunityPageV2 that is responsible for this behavior, but everything I have tried does not seem to want to work.

Does anyone have any suggestions on how I could make this work?

 

Like 0

Like

3 comments

Dear Philip,

You have found the correct solution by yourself. You need to replace the schema and change the following line:

"multiLookupColumns": ["Contact", "Account"]

Only contacts should be left there for you to accomplish the task.

Lisa

Lisa Brown,

Hi Lisa, 

I did change "multiLookupColumns": ["Contact", "Account"]" to "multiLookupColumns": ["Contact"]" but that did not give me the outcome I was looking for. 



Do I call something other than "multiLookupColumns"? 

Philip Wierciszewski,

 

The brackets are not necessary. I was able to achieve the task with just the following code:

 

Matt

Show all comments