< Back

Get-CrmFailedWorkflows

Sat Jan 18, 2020 4:00 pm

NAME Get-CrmFailedWorkflows



SYNOPSIS

Retrieves alert notifications from CRM organization.





SYNTAX

Get-CrmFailedWorkflows [-conn <CrmServiceClient>] [[-TopCount] <Int32>] [[-PageNumber] <Int32>] [[-PageCookie]

<String>] [[-AllRows] <SwitchParameter>] [<CommonParameters>]





DESCRIPTION

The Get-CrmFailedWorkflows cmdlet lets you retrieve failed workflows from a CRM organization.





PARAMETERS

-conn <CrmServiceClient>

A connection to your CRM organization. Use $conn = Get-CrmConnection <Parameters> to generate it.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-TopCount <Int32>

Maximum number of records to retrieve



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PageNumber <Int32>





Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PageCookie <String>





Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AllRows [<SwitchParameter>]

Indicates you would like to bring back data from all pages (all available rows in CRM, this function will take

longer to execute, but will include all the data rather than the first 5000 rows)



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









NOTES









-------------------------- Example 1 --------------------------



Get-CrmFailedWorkflows



This example retrieves failed workflow records notifications by omitting parameter names.

When omitting parameter names, you do not provide $conn, cmdlets automatically finds it.







Key Value

--- -----

CrmRecords {@{startedon_Property=[startedon, 9/14/2015 8:03:11 AM]; startedon=9/14/2015 3:03 AM;....

Count 2565

PagingCookie <cookie page="1"><modifiedon last="2015-05-10T01:43:22-03:00" first="2015-05-10T01:4...

NextPage False

FetchXml <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">...



-------------------------- Example 2 --------------------------



Get-CrmFailedWorkflows | % {$_.CrmRecords} | select message,startedon



This example retrieves workflow errors and displays them with the startedon and message attributes.







startedon message

--------- -------

9/14/2015 3:03 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/13/2015 3:03 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/12/2015 3:03 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/11/2015 3:03 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/10/2015 3:03 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/9/2015 2:46 PM Plugin Trace:...

9/9/2015 3:03 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/8/2015 3:03 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/7/2015 3:02 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/6/2015 3:03 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/5/2015 3:02 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/4/2015 7:30 AM Plugin Trace:...

9/4/2015 3:02 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/3/2015 3:02 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/2/2015 3:02 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

9/1/2015 3:02 AM Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault...

8/31/2015 4:49 PM Plugin Trace:...

8/31/2015 4:33 PM Plugin Trace:...

8/31/2015 4:33 PM Plugin Trace:...

...





RELATED LINKS