Generic attribute: finding entityid based on value of key

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 yıl önce
Guys,

Let's say I have the following entry in my GenericAttribute table:

================================================================
Id | EntityId |   KeyGroup  |     Key    |   Value   | StoreId
----------------------------------------------------------------
1  |    1     |    Order    | LeadTaskId |   ABC123  |   1
================================================================


How do I use the generic attribute service to find EntityId where KeyGroup = "Order" and Key = "LeadTaskId" and Value = "ABC123"?

Thanks!

Jeremy
4 yıl önce
Hi!  The following line of code, where `acct.TaskId` is the value of LeadTaskID, seems to get me the answer.

var nopOrderId = _genericAttributeService.GetAttributeValuebyEntity(acct.TaskId, "Order").EntityId;

Have a great day!

Jeremy
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.