Hi every one
I have a requirements to get all active ,resolved and created cases of the current date in work flow,
*This post is locked for comments
Hi every one
I have a requirements to get all active ,resolved and created cases of the current date in work flow,
*This post is locked for comments
thanks Ravi Kashyap
Hi Razim,
You need to create the custom workflow activity. You can use the below sample code-
var fetchXML = @"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>
<entity name='incident'>
<attribute name='title' />
<attribute name='ticketnumber' />
<attribute name='createdon' />
<attribute name='incidentid' />
<attribute name='caseorigincode' />
<attribute name='statecode' />
<attribute name='statuscode' />
<order attribute='title' descending='false' />
</entity>
</fetch>";
var results = service.RetrieveMultiple(new FetchExpression(fetchXML));
foreach (var record in results.Entities)
{
var caseTitle = record["title"];
var ticketNumber = record["ticketnumber"];
var stateCode = record["statecode"];
var statusCode = record["statuscode"];
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156