28
Views
2
Comments
Solved
Action to compare value of static entities
Application Type
Traditional Web

Hi,

I have a question about static entities.

Is it possible to compare values of static entities?

For example, I have a review where the reviewStatus (static entity) that one user rated was 1 and another user rated 5. The lowest value, 1, prevails.

Any way to do this? What is the logic that I can define in this action?

Thank you very much.


mvp_badge
MVP
Rank: #51
Solution

Hi Rita ,

Yes , you can do that , there is an Get action with Static entity which return the entire record of static entity . You can have an additional integer attribute in your static entity for example  rating (integer) and then you can use the GetEntity action of statick entity , pass the identifier selected by different users and compare the integer attribute in the action and return the expected value from action.

Something like this..

GetOpportunityStage(Entities.OpportunityStage.Prospecting).OpportunityStage.Rating>GetOpportunityStage(Entities.OpportunityStage.Investigation).OpportunityStage.Rating

This is just an example with the entity i have you can do similar with your entity.


Regards,

-PJ-



Rank: #14499

Thank you very much Pramod,

I hadn't thought of it that way. Excellent solution!

Regards.