cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Customizing a trigger to only fire up on creation of specific products on Order Line

Hi Guys,

 

I have a trigger that I want to only fire up for creation of specific products on order line, here it is.

 

jimmart_0-1599027460796.png

 

 

What I want is that it would only fire up for products that are under a specific Field (Parent)

 

jimmart_1-1599027560305.png

 

Can i add something on the filtering attributes for that? or is my only way to add a control condition for it? Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resident Rockstar
Resident Rockstar

Hi @jimmart 

 

Filtering attributes act on the the fields that exist on the Entity which is in your case is the Order Lines

But Product is a lookup on the Order Line and then you need to filter with a Field on the Product , so you need to retrieve product and add your condition and exist if not satisfied.

 

 

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Highlighted
Resident Rockstar
Resident Rockstar

Hi @jimmart 

 

Filtering attributes act on the the fields that exist on the Entity which is in your case is the Order Lines

But Product is a lookup on the Order Line and then you need to filter with a Field on the Product , so you need to retrieve product and add your condition and exist if not satisfied.

 

 

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (8,726)