How to get the audit for comments

Ashu_Aswal
New Contributor III

Hi ,

In one of my report the user want to show a column for audit which will show who commented for that variance explanation intersection, can you please help me to get this audit. Please let me know if any more information required. 

1 ACCEPTED SOLUTION

FredLucas
Contributor III

Hi @Ashu_Aswal,

You could achieve that by creating a dynamic calc member and having it returning that info for the required POV using the following api:

Dim objDataAttachmentList As DataAttachmentList = api.Data.GetDataAttachments(memberScript, includeFileBytes, startRowIndex, pageSize)
objDataAttachmentList.Items.Item(0).LastEditedUserName

Note: it is important that you use one of the text view members e.g.: V#Annotation to show that info.

View solution in original post

2 REPLIES 2

FredLucas
Contributor III

Hi @Ashu_Aswal,

You could achieve that by creating a dynamic calc member and having it returning that info for the required POV using the following api:

Dim objDataAttachmentList As DataAttachmentList = api.Data.GetDataAttachments(memberScript, includeFileBytes, startRowIndex, pageSize)
objDataAttachmentList.Items.Item(0).LastEditedUserName

Note: it is important that you use one of the text view members e.g.: V#Annotation to show that info.

Ashu_Aswal
New Contributor III

Thank you very much @FredLucas for this solution. This worked perfectly.