Post

2 followers Follow
0
Avatar

Work Items Manager Retrieval

When i m trying to retrieve Manager data from WorkItems into Datagrid view i m getting data in form of hexadecimal.How can i get it in Names(string format).

query.Fields = new string[] { "SYSID", "Name", "DueDate", "StartDate", "PercentCompleted", "Manager", "CreatedOn", "Parent", "Phase" };

Output(Manager)=350fbdc1-16e1-476e-af53-a402f41f66b0

Import from old forum Answered

Please sign in to leave a comment.

5 comments

0
Avatar

Correct. You are getting the ID of the manager. You can ask for the field "Manager.DisplayName". This will give you a User object with the DisplayName field populated with its value.

Clarizen Team 0 votes
Comment actions Permalink
0
Avatar

When i am replacing Manager with Manager.DisplayName this is the output i m getting.

350fbdc1-16e1-476e-af53-a402f41f66b0 (DisplayName: KM)

Import from old forum 0 votes
Comment actions Permalink
0
Avatar

I'm guessing you are using the sample code from our website. The code goes over all internal fields of an object and concatenates them to a string in the format you showed. You will have to do something similiar which fits your needs (i.e. only extract the DisplayName field).

Clarizen Team 0 votes
Comment actions Permalink
0
Avatar

yeah you were right I used the clarizen client code.Can u give me an example how can it be done if possible??

Import from old forum 0 votes
Comment actions Permalink