web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Custom workflow update record and create PDF returns blank report

(0) ShareShare
ReportReport
Posted on by 1,703
Looking for some assistance on how to track down this problem.
CRM 8.2x
I have a custom button on a ribbon workbench that fires an action. The action invokes my plugin. Part of that plugin updates x number of records
For Each returnedRecord In Returned_transactionsets.Entities    Try        If returnedRecord.Attributes.Contains(/new_apacs18file/) Then            WritetoBACSFile(Replace(Replace(returnedRecord.Attributes(/new_apacs18file/).ToString, vbCrLf & vbCrLf, vbCrLf), vbCrLf & vbCrLf, vbCrLf))            ' Update record to Processing            Dim recordId As New Guid(LineArray(i).ToString)            Dim UpdTranset As New Entity(/new_transactionsets/) With {                .Id = recordId            }            ' update file status to Processing  Option set value 3            UpdTranset.Attributes.Add(/new_submissionstatus/, New OptionSetValue(3))            UpdTranset.Attributes.Add(/new_bureauvolumenumber/, volumenumber)            service.Update(UpdTranset)        End If    Catch ex As Exception        Writetolog(ex.Message.ToString)        Throw New InvalidPluginExecutionException(/Error looking up new_apacs18file  - / & ex.Message.ToString)    End TryNext
 
The 'WriteToBACSFile' function is completed as expected.
 
The plugin then creates a PDF report containing those records that have been updated.  The PDF is created but no records are displayed. The parameter passed through to the report is correct as it is displayed in the PDF. If I go into reporting services and manually call that report, passing in the same parameter value the report renders correctly.  I have looked in the Reporting services logs and cannot see any errors
 
I'm wondering if the records aren't updated until the action is completed ?  Can anyone suggest where I need to look to try and resolve this.
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 131 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 88

#3
Chris1968 Profile Picture

Chris1968 20

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans