Community
Showing results for 
Search instead for 
Do you mean 
Reply

How to access the sub-entity "notes" from a contact

Accepted Solution Solved
Copper Super Contributor
Posts: 28
Country: Canada
Accepted Solution

How to access the sub-entity "notes" from a contact

I've searched the API, I've looked on the forum, and for the life of me I cannot figure out how to access sub-entites from the current contact.

 

When I'm referencing sub-entities this is what I mean (the areas marked in red):

 

I need to access notes and the table within it, to gather all data.

 

I've been able to access the entities such as "Company", "City"...etc but just not anyhting within this tab, I don't know how. Are there any code examples anywhere, or does anyone have experience doing this?

 

This is what I've got so far:

namespace acact
{
    public partial class ActExport : System.Web.UI.Page
    {
        ACAct act = new ACAct();

        protected void Page_Load(object sender, EventArgs e)
        {
            ContactList cList = act.getContactByEmail("devs@test.net");
            
             //how do I get the Notes sub-entity?

            foreach (Contact con in cList) {
                string name = con.FullName;
                Response.Write(
                 "type: " + con.Fields["Type", FieldNameType.Alias] + "<br>"
                 + "ID/Status: " + con.Fields["ID/STATUS", FieldNameType.Alias] + "<br>"
                );
            }
        }
    }
}

 

As you can see I am getting a single contact in this example, and just accessing fields. From here I have no clue how to access the "Notes" sub-entity.

 

Thanks.


Accepted Solutions
Solution
Accepted by topic author 2gen
‎09-25-2015 03:20 AM
Copper Super Contributor
Posts: 28
Country: Canada

Re: How to access the sub-entity "notes" from a contact

[ Edited ]

This isn't for the web it's a desktop application. Can I still access this? 

 

So far I was able to do:

ActFramework ACTFM = new ActFramework();
ACTFM.SessionManager....

But this does not find the ".Framework.Notes....". How am I able to access or instantiate ACTSessionManager, or is this strictly a web thing?

 

EDIT: I was able to access the desktop version of this with ACTFM.Notes.GetNotes(null, con);...now i just gotta figure out how to parse. shouldn't be too bad. Thanks for the help Jim, Kudos is owed!

View solution in original post


All Replies
Bronze Super Contributor
Posts: 1,231
Country: USA

Re: How to access the sub-entity "notes" from a contact

Have you looked into the framework attached to the session manager.

 

ACTSessionManager.Framework.Notes.GetNotes(nothing,con)

 

-- JIm Durkin

Solution
Accepted by topic author 2gen
‎09-25-2015 03:20 AM
Copper Super Contributor
Posts: 28
Country: Canada

Re: How to access the sub-entity "notes" from a contact

[ Edited ]

This isn't for the web it's a desktop application. Can I still access this? 

 

So far I was able to do:

ActFramework ACTFM = new ActFramework();
ACTFM.SessionManager....

But this does not find the ".Framework.Notes....". How am I able to access or instantiate ACTSessionManager, or is this strictly a web thing?

 

EDIT: I was able to access the desktop version of this with ACTFM.Notes.GetNotes(null, con);...now i just gotta figure out how to parse. shouldn't be too bad. Thanks for the help Jim, Kudos is owed!