Which IIQ version are you inquiring about?
8.4
Share all details about your problem, including any error messages you may have received.
I created a custom object which takes advantage of the Custom class’s Attributes map, allowing me to save a record when users complete a form when they create an access request.
The record looks something like this in the Attributes map:
<entry key="userId (multiple users can submit these forms, so each of these entries represents a user">
<value>
<List>
<Map>
<entry key="dateTime">
<value>
<Date>epoch bigint</Date>
</value>
</entry>
<entry key="name" value="NAME">
<entry key="managed attribute display name" value="VALUE">
<entry key="managed attribute value" value="VALUE">
</Map>
<Map>
<entry key="dateTime 2 (user can submit multiple forms across numerous access requests)">
<value>
<Date>epoch bigint</Date>
</value>
</entry>
<entry key="name" value="NAME">
<entry key="managed attribute display name" value="VALUE">
<entry key="managed attribute value" value="VALUE">
</Map>
</List>
</value>
</entry>
I have successfully created a SQL query that can display the XML data in a SQL table, but I have not managed to present that data in an identityiq report.
The SQL query:
SELECT
entry_parent.value(‘@key’, ‘nvarchar(255)’) AS userId,
[entry].value(‘(entry[@key=“completedOn”]/value/Date)[1]’, ‘bigint’) AS completedOn,
[entry].value(‘(entry[@key=“fullName”]/@value)[1]’, ‘nvarchar(255)’) AS fullName,
[entry].value(‘(entry[@key=“managedAttributeDisplayName”]/@value)[1]’, ‘nvarchar(255)’) AS managedAttributeDisplayName,
[entry].value(‘(entry[@key=“managedAttributeValue”]/@value)[1]’, ‘nvarchar(255)’) AS managedAttributeValue
FROM (
SELECT CAST(attributes AS XML) as attributes_xml
from spt_custom where name = ‘CUSTOM ENTRY NAME HERE’) as src
CROSS APPLY attributes_xml.nodes(‘/Attributes/Map/entry’) AS parent(entry_parent)
CROSS APPLY entry_parent.nodes(‘value/List/Map’) AS t([entry])
order by completedOn Desc
When I tried to create the report myself, I have tried to use the Filter-type datasource to use the OptionsQuery and try to write the SQL query from scratch, but that didn’t work. I also tried to use the Hql-type datasource to use the Query object, keeping only the FROM and CROSS APPLY pieces of my query, but identityiq threw errors on the first open parenthesis “(“ of the FROM section.
How do I create a custom report that can show numerous entries of data like this, 1 form submission per row?