The CreatorCon Call for Content is officially open! Get started here.

how to override the Query Business rules in inbound action

narenreddy
Giga Guru

We have Query business rules on task table to give the visibility to the customers based on their account/company, But the issue is here the inbound action is not processing when user replies to case where user is restricted to that record by Query business rule. Is there any way to override the business rule for inbound actions.

8 REPLIES 8

You COULD try using



gs.isInteractive()



in the query business rule. This returns a "true" if the query is done from a browser. If it's done from an integration (like email) then it's false. Set it up in your BR with the right condition and then you can determine when to run the filter and when not to.


Hi Narender,



Why dont you allow the watchlist to see the records as well using the onBefore Query.


If they are part of watchlist, they should also be able to view those records.



Please mark this response as correct or helpful if it assisted you with your question.

Hi Sanjiv,



We have the business requirement were a user should not be seeing the record/case. However, on some exceptional cases they get marked in watch-list for the updates and they reply to the emails received, which does not get updated to the case due to the Query BR.



We are trying to handle these exceptional cases on the inbound emails without affecting the actual design.



Thanks,


Satish


Thanks Satish. I would still say, user in watchlist should have access to those incident.



But this is what is required, then you can use below as suggested by Lars and Chuck



gs.getSession().isInteractive()



Please mark this response as correct or helpful if it assisted you with your question.