Community
Showing results for 
Search instead for 
Do you mean 
Reply

SDK Noob -> Get field value from a CEL...

Bronze Super Contributor
Posts: 1,170
Country: USA

SDK Noob -> Get field value from a CEL...

How do I get to the fields and values for this:

 

Dim CEL As Act.Framework.CustomEntities.CustomEntityList(Of Act.Framework.CustomEntities.CustomSubEntity) = tblSponsors.GetRows(Nothing, New Act.Framework.IFilterCriteria(){fc})
    
        For Each CSE As Act.Framework.CustomEntities.CustomSubEntity In CEL   

              <get field values here and do something...>

       Next

 

I can do a CSE.ID OK so I know I am returning the records I need, just can't make the leap to specifying the desired field(s)..

 

Thanks.

Employee
Posts: 1,163
Country: USA

Re: SDK Noob -> Get field value from a CEL...

To get a field value from a CSE, your going to need to get the CSE manager for that particular entity. Unless I'm mistaken the CSE mgr has a Fields property, so you can then retrieve fied values like with other entities:

 

object value = CustomSubEntityMgr.Fields["MyFieldName"];

Matthew Wood
Act! SDK Support
Community Moderator
Bronze Super Contributor
Posts: 1,170
Country: USA

Re: SDK Noob -> Get field value from a CEL...

Ok - thanks.  I will see if I can put that together.

 

I am having trouble with the namespace(s) as far as knowing what is what...