GetVerifications


📘

Note

Query performance depends on the volume of data retrieved within the selected time frame. Using Submitted Date Types and narrower date ranges can improve performance, but may exclude relevant data. Choose your date range carefully to balance speed and completeness.

Summary

The GetVerifications function will retrieve verifications related to a record data based on the parameters provided. That being the case There can be more than one row per record as there can be multiple verifications per record.

The values will be determined by the date range provided using the following parameters:

  • Verification Name (Required)
  • Date Type (Required)
  • Time Zone Offset (Required)
  • Start Date (Conditional)*
  • End Date (Conditional)*
  • Minutes Ago (Conditional)*
  • Form Name (Optional)
  • Form Query Type (Optional)
  • Request Identifier (Optional)
📘

Note:

*Start Date + End Date or Minutes Ago must be provided to build the date range query. All other optional values a null value can be provided; see examples below.

Verification Name is used to filter verifications associated with records. This is an exact-match filter and will return all records that contain the specified verification, along with the corresponding verification data. Because a record may contain multiple verifications, the results may include multiple rows for a single record.

For more detail on the parameters see the full list of descriptions here.

function (VerificationName as text, DateType as text, TimeZone as number, StartDate as datetime, EndDate as datetime, MinAgo as number, FormName as text, formQueryType as text, RequestIdentifier as text)

Invoking the Function

Here is an example of invoking them using Power Query or through the visual editor.

With Date Range:

GetVerifications("Signoff", "Processed", 0, #datetime(2023, 6, 21, 0, 0, 0), #datetime(2023, 6, 22, 0, 0, 0), null, null, null)

With Min Ago:

GetVerifications("Signoff","Processed", 0, null, null, 259200, "Checkform", "FormLike")
📘

Note:

You can fill out the function parameters and click _Invoke _to create the table automatically. See example below.



GetVerifications Result

The following field columns will be outputted in a table.


RecordNumberSubmittedDateFormNameRecordIdModifiedDateModifiedUserNameImageListRowVerifiedNameVerifiedUserNameVerifiedDateCommentCompliance
758771/11/2024 7:15:02 PMTest Verificationsf374cb3d-b812-4474-82c4-bcc839dde0cc1/17/2024 7:14:07 PMdmiyanonull1Signoffdmiyano2024-01-17T19:14:07.5630000
759551/30/2024 11:05:17 AMTest Verifications736fbaa8-15f5-4c58-9e06-d94677e6644c1/30/2024 11:08:30 AMSuperAdminnull2SignoffSuperAdmin2024-01-30T15:31:09.0230000Signoff
759551/30/2024 11:05:17 AMTest Verifications736fbaa8-15f5-4c58-9e06-d94677e6644c1/30/2024 11:08:30 AMSuperAdminnull2SignoffSuperAdmin2024-01-30T15:29:12.7870000Signoff
759551/30/2024 11:05:17 AMTest Verifications736fbaa8-15f5-4c58-9e06-d94677e6644c1/30/2024 11:08:30 AMSuperAdminnull2SignoffSuperAdmin2024-01-30T14:50:10.2430000Signoff
759551/30/2024 11:05:17 AMTest Verifications736fbaa8-15f5-4c58-9e06-d94677e6644c1/30/2024 11:08:30 AMSuperAdminnull2SignoffSuperAdmin2024-01-30T12:09:48.6730000Test
#table({
  "RecordNumber",
  "SubmittedDate",
  "FormName",
  "RecordId",
  "ModifiedDate",
  "ModifiedUserName",
  "ImageList",
  "Row",
  "VerifiedName",
  "VerifiedUserName",
  "VerifiedDate",
  "Comment",
  "Compliance"
}, {})

Formatting Column Data Types


👍

Tip:

Once the table is created, you may format the columns as needed. Select Transform-> Detect Data Type.

For example, you may choose to set VerifiedDate, ModifiedDate, and SubmittedDate as datetime fields (see the Power Query example below).


Table.TransformColumnTypes(Source,{{"RecordNumber", Int64.Type},{"SubmittedDate", type datetime}, {"ModifiedDate", type datetime}, {"VerifiedDate", type datetime}})