Skip to main content
deleted 8 characters in body
Source Link

I have a Junction object called "LOCATION JUNCTION", and it has two master-detail relationships to Opportunity and Location

When I create new junction object records like

  1. name1 opp1 loca1
  2. name2 opp2 loca1

The system should throw an error like

"please select different location"

(FOR one account if  opp1 is having location1 then opp2 should not take location1) (Opportunities under same account should not have same location) How should I write a trigger on this junction object. Please suggest. enter image description here

Thanks, kiran.

I have a Junction object called "LOCATION JUNCTION", and it has two master-detail relationships to Opportunity and Location

When I create new junction object records like

  1. name1 opp1 loca1
  2. name2 opp2 loca1

The system should throw an error like

"please select different location"

(FOR one account if  opp1 is having location1 then opp2 should not take location1) (Opportunities under same account should not have same location) How should I write a trigger on this junction object. Please suggest. enter image description here

Thanks, kiran.

I have a Junction object called "LOCATION JUNCTION", and it has two master-detail relationships to Opportunity and Location

When I create new junction object records like

  1. name1 opp1 loca1
  2. name2 opp2 loca1

The system should throw an error like

"please select different location"

(FOR one account if  opp1 is having location1 then opp2 should not take location1) (Opportunities under same account should not have same location) How should I write a trigger on this junction object. Please suggest. enter image description here

Thanks

Tweeted twitter.com/StackSalesforce/status/700394934663311362
added 64 characters in body
Source Link

I have a Junction object called "LOCATION JUNCTION", and it has two master-detail relationships to Opportunity and Location

When I create new junction object records like

  1. name1 opp1 loca1
  2. name2 opp2 loca1

The system should throw an error like

"please select different location"

(FOR one account if  opp1 is having location1 then opp2 should not take location1)

How (Opportunities under same account should not have same location) How should I write a trigger on this junction object. Please suggest. enter image description here

Thanks, kiran.

I have a Junction object called "LOCATION JUNCTION", and it has two master-detail relationships to Opportunity and Location

When I create new junction object records like

  1. name1 opp1 loca1
  2. name2 opp2 loca1

The system should throw an error like

"please select different location"

(FOR one account if  opp1 is having location1 then opp2 should not take location1)

How should I write a trigger on this junction object. Please suggest. enter image description here

Thanks, kiran.

I have a Junction object called "LOCATION JUNCTION", and it has two master-detail relationships to Opportunity and Location

When I create new junction object records like

  1. name1 opp1 loca1
  2. name2 opp2 loca1

The system should throw an error like

"please select different location"

(FOR one account if  opp1 is having location1 then opp2 should not take location1) (Opportunities under same account should not have same location) How should I write a trigger on this junction object. Please suggest. enter image description here

Thanks, kiran.

Formatted to proper markup
Source Link
martin
  • 12.7k
  • 10
  • 50
  • 75

I have a Junction object called "LOCATION JUNCTION", and it has two master-detail like   Opportunityrelationships to Opportunity and Location

when iWhen I create new junction object recordrecords like

  1. name1 opp1 loca1
  2. name2 opp2 loca1

then it shuldThe system should throw an error like

"please select different location"

(FOR one account if  opp1 is having location1 then opp2 should not take location1)

How toshould I write a trigger on this junnctionjunction object. Please suggest. enter image description here

Thanks, kiran.

I have Junction object called "LOCATION JUNCTION" it has two master-detail like   Opportunity and Location

when i create new junction object record like

  1. name1 opp1 loca1
  2. name2 opp2 loca1

then it shuld throw error like

"please select different location"

(FOR one account if  opp1 is having location1 then opp2 should not take location1)

How to write trigger on this junnction object. Please suggest. enter image description here

Thanks, kiran.

I have a Junction object called "LOCATION JUNCTION", and it has two master-detail relationships to Opportunity and Location

When I create new junction object records like

  1. name1 opp1 loca1
  2. name2 opp2 loca1

The system should throw an error like

"please select different location"

(FOR one account if  opp1 is having location1 then opp2 should not take location1)

How should I write a trigger on this junction object. Please suggest. enter image description here

Thanks, kiran.

Source Link
Loading