Call Entity's OData action attribute

Hi All,

I have created an action attribute for an entity. It has 2 parameters. Now I need to call it using HTTP. I have seen online that I need to call it using the format:


[Organization Root URL]/data/CustomerGroups(CustomerGroupId=‘100’,dataAreaId=‘USMF’)/ActionName


However, I don't want to follow this approach since I am not calling the entity for each individual record, hence do not wish to pass the unique key. 
Also I am not sure regarding how to pass parametes to the action. So can anyone please guide me regarding how to trigger this Action with parameter
and also not passing the PrimaryKey.
Thanks in advance

You should make the method static and call it by [Organization Root URL]/data/CustomerGroups/Microsoft.Dynamics.DataEntities.ActionName. Parameters should be in a JSON object passed in the request body.