cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dr1n
Frequent Visitor

Option Set from CDS with Trigger Condition

I'm trying to put a trigger condition in "When a record is created, updated or deleted".

I tried all the trigger conditions I saw in this forum, but unfortunately, it's not working.

 

It is an Option Set in the CDS entity.

 

This is my trigger condition: @equals(triggerOutputs()?['body/statuscode'], 'Billed')

I also tried this one: @equals(triggerOutputs()?['body/statuscode']?['Value'], 'Billed')

 

Here's the screenshot.

dr1n_0-1604536391669.png

 

I also tried this and copy the code in the trigger condition field.

dr1n_1-1604536503518.png

dr1n_2-1604536519476.png

 

I'm stuck. Can someone help me with this?

 

@v-bacao-msft @abm @RezaDorrani 

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
ManishJain
Solution Sage
Solution Sage

Hi @dr1n ,

 

In order to use filters in CDS use filtering attribute and expression. In your case it is statuscode , in filtering expression use statuscode eq 11 (your actual statuscode value)

 

Thanks

View solution in original post

1 REPLY 1
ManishJain
Solution Sage
Solution Sage

Hi @dr1n ,

 

In order to use filters in CDS use filtering attribute and expression. In your case it is statuscode , in filtering expression use statuscode eq 11 (your actual statuscode value)

 

Thanks

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (19,808)